Standard C Library Functions pthread_self(3C)
NAME
pthread_self - get calling thread's ID
SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ]
#include
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 attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
pthread_create(3C), pthread_equal(3C), attributes(5), stan-
dards(5)SunOS 5.11 Last change: 23 Mar 2005 1