IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 


pthread_main_np(3)

NAME

     pthread_main_np -- identify the initial thread


LIBRARY

     Reentrant C Library (libc_r, -lc_r)
     POSIX Threads Library (libpthread, -lpthread)
     1:1 Threading Library (libthr, -lthr)


SYNOPSIS

     #include <pthread_np.h>

     int
     pthread_main_np(void);


DESCRIPTION

     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.


SEE ALSO

     pthread_create(3), pthread_equal(3), pthread_self(3)


AUTHORS

     This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.

FreeBSD 5.4		       February 13, 2003		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk