Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

thr_self(3C)

Name

thr_self - get calling thread's ID

Synopsis

#include <thread.h> 

typedef unsigned int thread_t;

thread_t thr_self(void);

Description

thr_self() 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
MT-Level
MT-Safe

See Also

thr_create(3C), attributes(7), standards(7)