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


pthread_self

Obtains the identifier of the current thread.

Syntax

pthread_self();

C Binding

pthread_t
pthread_self ();

Arguments

None

Description

This routine allows a thread to obtain its own identifier. Use this identifier in calls to pthread_setprio and pthread_ setscheduler.

This value becomes meaningless when the thread object is deleted- that is, when the thread has terminated its execution and pthread_ detach has been called.

Return Values

Returns the identifier of the calling thread to pthread_t.



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