opensolaris man page for thr_main

Query: thr_main

OS: opensolaris

Section: 3c

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
libthread(3lib) - opensolaris
libthread(3lib) - minix
libthread(3lib) - opendarwin
libthread(3lib) - php
libthread(3lib) - mojave
Similar Topics in the Unix Linux Community
Change directory for core file
Grep the 'not running' jobs and will send the update in mail with its name(job)
Free Sun Blade 2k, Ultra 2, Ross Hyperstation 30, cards, memory- Baltimore, MD
Identify problem with while getopts
What is good?