THR_MAIN(3C) | Standard C Library Functions | THR_MAIN(3C) |
thr_main - identify the main thread
cc -mt [ flag... ] file... [ library... ] #include <thread.h> int thr_main(void);
The thr_main() function returns one of the following:
1
0
-1
/lib/libthread
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
MT-Level | MT-Safe |
May 11, 1998 | OmniOS |