1thr_self(3C) Standard C Library Functions thr_self(3C)
2
3
4
6 thr_self - get calling thread's ID
7
9 cc -mt [ flag... ] file...[ library... ]
10 #include <thread.h>
11
12 thread_t thr_self(void);
13
14
15 typedef(unsigned int thread_t);
16
17
19 thr_self() returns the thread ID of the calling thread.
20
22 No errors are defined.
23
25 See attributes(5) for descriptions of the following attributes:
26
27
28
29
30 ┌─────────────────────────────┬─────────────────────────────┐
31 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
32 ├─────────────────────────────┼─────────────────────────────┤
33 │MT-Level │MT-Safe │
34 └─────────────────────────────┴─────────────────────────────┘
35
37 thr_create(3C), attributes(5), standards(5)
38
39
40
41SunOS 5.11 9 May 1998 thr_self(3C)