man pages section 3: Basic Library Functions
  Buscar sólo este libro
Descargar este libro en PDF (4217 KB)

pthread_self(3C)

Name | Synopsis | Description | Errors | Attributes | See Also

Name

    pthread_self– get calling thread's ID

Synopsis

    cc –mt [ flag... ] file... –lpthread [ library... ]
    
    #include <pthread.h> 
    
    pthread_t pthread_self(void);

Description

    The pthread_self() function returns the thread ID of the calling thread.

Errors

    No errors are defined.

Attributes

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

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Interface Stability 

    Standard 

    MT-Level 

    MT-Safe 

See Also

SunOS 5.11  Last Revised 23 Mar 2005

Name | Synopsis | Description | Errors | Attributes | See Also