pthread_self3
Get the calling thread's id
Usage
#include <pthread.h>
pthread_t
pthread_self(void);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_self() function returns the thread ID of the calling thread.
Return values
The pthread_self() function returns the thread ID of the calling thread.
Errors
None.
Releases
80 releases since FreeBSD 2.2.7-RELEASE; the text changed 43 times.