THR_SELF(3C)THR_SELF(3C)NAMEthr_self - get calling thread's ID
SYNOPSIS
cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
thread_t thr_self(void);
typedef(unsigned int thread_t);
DESCRIPTIONthr_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 ALSOthr_create(3C), attributes(5), standards(5)
May 9, 1998 THR_SELF(3C)