VMS Help  —  DCE  DCE_THREADS, Application Routines, pthread_self
 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
                 pthread_setprio
                 pthread_setscheduler
Close Help