*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> pthread_main_np (3)              
Title
Content
Arch
Section
 

PTHREAD_MAIN_NP(3)

Contents


NAME    [Toc]    [Back]

     pthread_main_np -- identify the initial thread

LIBRARY    [Toc]    [Back]

     Reentrant C Library (libc_r, -lc_r)

SYNOPSIS    [Toc]    [Back]

     #include <pthread_np.h>

     int
     pthread_main_np(void);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

     This manual page was written by Alexey Zelkin <[email protected]>.


FreeBSD 5.2.1		       February 13, 2003		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pthread_self IRIX identify a thread
pthread_main_np OpenBSD identify the main thread
tt_thread_procid HP-UX identify the default process for the currently active thread
ident Tru64 identify files
ident HP-UX identify files in RCS
idlookup HP-UX identify the user of a particular TCP connection
what IRIX identify SCCS files
mvIs IRIX identify movie instances
DEVICE_IDENTIFY FreeBSD identify a device, register it
fstat FreeBSD identify active files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service