PTHREAD_MAIN_NP(3) | Library Functions Manual | PTHREAD_MAIN_NP(3) |
pthread_main_np
—
identify the initial thread
#include
<pthread.h>
int
pthread_main_np
(void);
The
pthread_main_np
()
function is to identify the initial thread.
The pthread_main_np
() function returns 1
if the calling thread is the initial thread, 0 if the calling thread is not
the initial thread, and -1 if the thread's initialization has not yet
completed.
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
February 13, 2003 | Mac OS X 12 |