|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Basic Library Functions Oracle Solaris 11 Express 11/10|
- get calling thread's ID
cc –mt [ flag... ] file...[ library... ] #include <thread.h> thread_t thr_self(void);
typedef(unsigned int thread_t);
thr_self() returns the thread ID of the calling thread.
No errors are defined.
See attributes(5) for descriptions of the following attributes: