pthread_self(3T)pthread_self(3T)NAMEpthread_self() - obtain the thread ID for the calling thread
SYNOPSISPARAMETERS
None.
DESCRIPTION
returns the of the calling thread. The thread ID returned is the same
ID that is returned in the thread parameter to the creating thread at
thread creation time. Thread IDs are guaranteed to be unique only
within a process.
RETURN VALUE
always returns the thread ID of the current thread.
ERRORS
None.
AUTHOR
was derived from the IEEE POSIX P1003.1c standard.
SEE ALSOpthread_create(3T), pthread_equal(3T), getpid(2).
STANDARDS CONFORMANCE
Pthread Library pthread_self(3T)