Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

pthread_self(3C)

Name

pthread_self - get 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.

Errors

No errors are defined.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Async-Signal-Safe
Standard

See Also

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