THRD_CURRENT(3C) | Standard C Library Functions | THRD_CURRENT(3C) |
thrd_current
—
obtain current thread's ID
#include
<threads.h>
thrd_t
thrd_current
(void);
The
thrd_current
()
function returns the thread ID of the current calling thread. Note, this ID
may be different from the thread ID returned when using
thr_self(3C) or
pthread_self(3C); however, it
still uniquely identifies the thread.
No errors are defined.
pthread_self(3C), thr_self(3C), thrd_create(3C), attributes(7), threads(7)
January 11, 2015 | OmniOS |