[Vala] How to check if current thread is main thread?



Hi

I need to check (for debugging purposes) if current thread is main
thread. How can I do that in Vala?

I know that in GLib exists g_thread_self() and I can  use result of
that function for that purpose but in Vala's vapi it has strange
syntax that I cannot truly understand.

Thank you in advance,

m.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]