Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はスレッドを作成するためにglibを使用しています:
g_thread_create()
スレッドID(番号)を取得するにはどうすればよいですか?
できません。スレッドIDはGLibで抽象化されます。何のために必要ですか?
バラを使用している場合は、次を使用できます:
var t = Thread.self<bool> () ; message ("OTHER THREAD: %p", t) ;
出力は次のとおりです。
** Message: vala-thread.vala:6: OTHER THREAD: 0x165e400