man pages section 3: Basic Library Functions
この本のみを検索
この本を見る:
PDF 文書ファイルをダウンロードする (3779 KB)

thr_main(3C)

Name | Synopsis | Description | Files | Attributes | See Also

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

SunOS 5.10 Last Revised 11 May 1998

Name | Synopsis | Description | Files | Attributes | See Also