|
PTHREAD_MAIN_NP(3)
Contents
|
pthread_main_np -- identify the initial thread
Reentrant C Library (libc_r, -lc_r)
#include <pthread_np.h>
int
pthread_main_np(void);
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.
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.
pthread_create(3), pthread_equal(3), pthread_self(3)
This manual page was written by Alexey Zelkin <[email protected]>.
FreeBSD 5.2.1 February 13, 2003 FreeBSD 5.2.1 [ Back ] |