PTHREAD_SELF(3C) Standard C Library Functions PTHREAD_SELF(3C)
pthread_self - get calling thread's ID
cc -mt [ flag... ] file... -lpthread [ library... ]
#include <pthread.h>
pthread_t pthread_self(void);
The pthread_self() function returns the thread ID of the calling
thread.
No errors are defined.
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Standard |
+--------------------+-----------------+
|MT-Level | MT-Safe |
+--------------------+-----------------+
pthread_create(3C), pthread_equal(3C), attributes(7), standards(7)
March 23, 2005 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(7) 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(7), standards(7)
March 23, 2005 PTHREAD_SELF(3C)