thr_main man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

thr_main(3C)		 Standard C Library Functions		  thr_main(3C)

NAME
       thr_main - identify the main thread

SYNOPSIS
       cc -mt [ flag... ] file... [ library... ]
       #include <thread.h>

       int thr_main(void);

DESCRIPTION
       The  thr_main() function	 returns one of the following:

       1      if the calling thread is the main thread

       0      if the calling thread is not the main thread

       -1     if   libthread is not linked in or thread initialization has not
	      completed

FILES
       /lib/libthread

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │ATTRIBUTE TYPE		     │ATTRIBUTE VALUE		   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │MT-Safe			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       thr_self(3C), attributes(5)

SunOS 5.11			  11 May 1998			  thr_main(3C)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net