VMS Help
POSIX Threads, PTHREAD routines, pthread_self
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Obtains the identifier of the calling thread.
#include <pthread.h>
pthread_t
pthread_self (void);
None
This routine returns the address of the calling thread's own
thread identifier. For example, you can use this thread object
to obtain the calling thread's own sequence number. To do so,
pass the return value from this routine in a call to the pthread_
getsequence_np() routine, as follows:
.
.
.
unsigned long this_thread_nbr;
.
.
.
this_thread_nbr = pthread_getsequence_np( pthread_self( ) );
.
.
.
The return value from the pthread_self() routine becomes
meaningless after the calling thread is destroyed.
Returns the address of the calling thread's own thread object.
pthread_cancel()
pthread_create()
pthread_detach()
pthread_exit()
pthread_getsequence_np()
pthread_join()
pthread_kill()
pthread_sigmask()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.