pthread_self(3) — Subroutines
Digital
NAME
pthread_self − Obtains the identifier of the current thread.
SYNOPSIS
#include <pthread.h>
pthread_t pthread_self( );
PARAMETERS
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.
RELATED INFORMATION
pthread_create(3), pthread_setprio(3), pthread_setscheduler(3)