Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ thr_main(3T) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

thr_self(3T)

attributes(5)

thr_main(3T)

NAME

thr_main − identify the main thread

SYNOPSIS

cc [ flag ... ] file ... −lthread [ library ... ]

#include <thread.h>

int thr_main(void);

DESCRIPTION

thr_main() returns:

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(3T), attributes(5)

SunOS 5.6  —  Last change: 8 May 1997

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026