pthread_main_np3
Identify the initial thread
Usage
#include <pthread_np.h>
int
pthread_main_np(void);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_main_np() function is used in userland threads environment to identify the initial thread. Its semantics is similar to the Solaris's thr_main() function.
Return values
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.
Releases
59 releases since FreeBSD 4.8-RELEASE; the text changed 35 times.