Standard C Library Functions thrmain(3C)
NAME
thrmain - identify the main thread
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int thrmain(void);
DESCRIPTION
The thrmain() 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 initializa-
tion has not completed
FILES
/lib/libthread
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level MT-Safe
SEE ALSO
thrself(3C), attributes(5)
SunOS 5.11 Last change: 11 May 1998 1
|