pthread_self(3)
NAME
pthread_self - Obtains the identifier of the current thread
SYNOPSIS
#include <pthread.h> pthread_t pthread_self();
DESCRIPTION
The pthread_self() routine allows a thread to obtain its own identifier. For example, this identifier allows a thread to set its own priority. This value becomes meaningless when the thread object is deleted; that is, when the thread terminates its execution and pthread_detach() is called.
RETURN VALUES
Returns the identifier of the calling thread to pthread_t.
RELATED INFORMATION
Functions: pthread_create(3), pthread_setprio(3), pthread_setscheduler(3).
Hewlett-Packard Company — OSF DCE 1.1/HP DCE 1.5