man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

pthread_self(3C)

Name

pthread_self - get calling thread's ID

Synopsis

cc –mt [ flag... ] file... [ 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
Committed
MT-Level
MT-Safe
Standard

See Also

pthread_create(3C), pthread_equal(3C), attributes(5), standards(5)