Content-type: text/html Man page of thr_main

thr_main

Section: Standard C Library Functions (3C)
Updated: 11 May 1998
Index Return to Main Contents
 

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 TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

 

SEE ALSO

thr_self(3C), attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:20 GMT, October 02, 2010