thr_main(3c) sunos man page | unix.com

Man Page: thr_main

Operating Environment: sunos

Section: 3c

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.10 11 May 1998 thr_main(3C)
Related Man Pages
libthread(3lib) - opensolaris
libthread(3lib) - osx
libthread(3lib) - x11r4
libthread(3lib) - opendarwin
libthread(3lib) - plan9
Similar Topics in the Unix Linux Community
How to convert number to english?
Merge and Sort tabular data from different text files
Once upon an uptime.
Outputting sequences based on length with sed
UNIX Environment Setup - (Just starting!)