PTHREAD_SELF(3) Library Functions Manual PTHREAD_SELF(3)

pthread_selfget calling thread's ID

#include <pthread.h>

pthread_t pthread_self(void);

The pthread_self() function returns the thread ID of the calling thread.

See DESCRIPTION above.

No errors are defined.

The function will not return an error code of [EINTR].

None.

None.

None.

pthread_create(3) , pthread_equal(3) , <pthread.h> .

Derived from the POSIX Threads Extension (1003.1c-1995)

February 1997 posix.fail