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.
Standard
MT-Level
MT-Safe
pthread_self(3C), thr_self(3C), thrd_create(3C), attributes(7),
threads(7)
illumos January 11, 2015 illumos
NAME
thrd_current - obtain current thread's ID
SYNOPSIS
#include <threads.h>
thrd_t
thrd_current(void);
DESCRIPTION
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.
ERRORS
No errors are defined.
INTERFACE STABILITY
Standard
MT-Level
MT-Safe
SEE ALSO
pthread_self(3C), thr_self(3C), thrd_create(3C), attributes(7),
threads(7)
illumos January 11, 2015 illumos