man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

thr_self(3C)

Name

thr_self - get calling thread's ID

Synopsis

cc –mt [ flag... ] file...[ library... ]
#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(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
MT-Level
MT-Safe

See also

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