PTHREAD_SELF(3) Library Functions Manual PTHREAD_SELF(3)
NAME
pthread_self — get
calling thread's ID
SYNOPSIS
#include <pthread.h> pthread_t pthread_self(void);
DESCRIPTION
The pthread_self() function returns the thread ID of the calling thread.
RETURN VALUE
See DESCRIPTION above.
ERRORS
No errors are defined.
The pthread_self() function will not return an error code of [EINTR].
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
DERIVATION
Derived from the POSIX Threads Extension (1003.1c-1995)
February 1997 posix.fail