THR_SELF(3C) Standard C Library Functions THR_SELF(3C)

thr_self - get calling thread's ID

cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
thread_t thr_self(void);

typedef(unsigned int thread_t);

thr_self() returns the thread ID of the calling thread.

No errors are defined.

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

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

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

May 9, 1998 OmniOS