How to get current thread id?
Hello,
I would like to know thread id of the process my program start in.
I have one main thread, so I do not start others.
Tried pthread_self but always returns 0
Have no clue why (coming from windows, where GetCurrentThreadId() does this job)
|