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

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

PTHREAD_MAIN_NP(3)

Contents


NAME    [Toc]    [Back]

     pthread_main_np - identify the main thread

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>
     #include <pthread_np.h>

     int
     pthread_main_np(void);

DESCRIPTION    [Toc]    [Back]

     The pthread_main_np() function identifies the main thread.

RETURN VALUES    [Toc]    [Back]

     The pthread_main_np() function returns:

     1     if the calling thread is the main thread

     0     if the calling thread is not the main thread

     -1    if the thread initialization has not completed

SEE ALSO    [Toc]    [Back]

      
      
     pthread_self(3), pthreads(3)

STANDARDS    [Toc]    [Back]

     The pthread_main_np() function is non-portable and  may  not
be supported
     with the above semantics on other POSIX systems.

OpenBSD      3.6                          August     17,     2001
[ Back ]
 Similar pages
Name OS Title
pthread_self IRIX identify a thread
pthread_main_np FreeBSD identify the initial thread
tt_thread_procid HP-UX identify the default process for the currently active thread
mem HP-UX main memory
malloc IRIX main memory allocator
tcl_main IRIX main program for Tcl-based applications
mainbus OpenBSD Mac68k main processor bus device
menu_driver NetBSD main menu handling function
tk_main IRIX main program for Tk-based applications
mainwin IRIX find the main window for an application
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service