Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pthread_self(3) [mojave man page]

PTHREAD_SELF(3) 					   BSD Library Functions Manual 					   PTHREAD_SELF(3)

NAME
pthread_self -- get the 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 VALUES
The pthread_self() function returns the thread ID of the calling thread. ERRORS
None. SEE ALSO
pthread_create(3), pthread_equal(3) STANDARDS
The pthread_self() function conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). BSD
April 4, 1996 BSD

Check Out this Related Man Page

pthread_self(3C)					   Standard C Library Functions 					  pthread_self(3C)

NAME
pthread_self - get calling thread's ID SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ] #include <pthread.h> pthread_t pthread_self(void); DESCRIPTION
The pthread_self() function returns the thread ID of the calling thread. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
pthread_create(3C), pthread_equal(3C), attributes(5), standards(5) SunOS 5.11 23 Mar 2005 pthread_self(3C)
Man Page