thr_main - identify the main thread
#include <thread.h> int thr_main(void);
The thr_main() function returns one of the following:
if the calling thread is the main thread
if the calling thread is not the main thread
if thread initialization has not completed
See attributes(7) for descriptions of the following attributes:
|