Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

thr_main(3C)

Name

thr_main - identify the main thread

Synopsis

#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 thread initialization has not completed

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
MT-Level
MT-Safe

See Also

thr_self(3C), attributes(7)