I use glib to create threads:
g_thread_create()
How can I get the thread id (number)?
You can not. The thread id is abstracted into GLib. Why do you need this?
If you use vala, you can use:
var t = Thread.self<bool> () ; message ("OTHER THREAD: %p", t) ;
Conclusion:
** Message: vala-thread.vala:6: OTHER THREAD: 0x165e400
Source: https://habr.com/ru/post/1763049/More articles:C ++ / CLI 64-bit COM - 64bitkill application after crash - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763046/how-to-pass-additional-parameters-to-javascript-event-object&usg=ALkJrhjqx3d6poOikTW3EB8oztQ_137pKgSQL Query value divided by max (value) - maxProper use of multiple style sheets on the same page - htmlHow can I express such a requirement using Java regular expression? - javaHow to remove part of the second seconds of a Date object - javaPaypal integration with Google python platform - pythonHow to check if a constant is suitable at compile time? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763054/is-there-an-msbuild-task-that-will-write-lines-to-the-start-of-a-file&usg=ALkJrhjXjhVV2WB0PHxrCa02DZ-5k3NqmgAll Articles