[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_self

Obtains the identifier of the current thread.

Syntax

pthread_self();

C Binding

#include 

pthread_t pthread_self (void);

Arguments

None

Description

This routine allows a thread to obtain its own thread identifier.

This value becomes meaningless when the thread is deleted.

Return Values

Returns the identifier of the calling thread.

Associated Routines

   pthread_cancel
   pthread_create
   pthread_detach
   pthread_exit
   pthread_join
   pthread_kill
   pthread_sigmask



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]