Query: pthread_self
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_self(3) Library Functions Manual pthread_self(3)NAMEpthread_self - Obtains the identifier of the calling thread.LIBRARYDECthreads POSIX 1003.1c Library (libpthread.so)SYNOPSIS#include <pthread.h> pthread_t pthread_self(void);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: IEEE Std 1003.1c-1995, POSIX System Application Program InterfacePARAMETERSNoneDESCRIPTIONThis 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(3) routine, as follows: unsigned long this_thread_nbr; . . . this_thread_nbr = pthread_getsequence_np( pthread_self( ) ); . . . The return value from the pthread_self(3) routine becomes meaningless after the calling thread is destroyed.RETURN VALUESReturns the address of the calling thread's own thread object.ERRORSNoneRELATED INFORMATIONFunctions: pthread_cancel(3), pthread_create(3), pthread_detach(3), pthread_exit(3), pthread_getsequence_np(3), pthread_join(3), pthread_kill(3), pthread_sigmask(3) Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_self(3)
Related Man Pages |
---|
pthread_getschedparam(3) - osf1 |
pthread_join(3) - osf1 |
pthread_kill(3) - osf1 |
pthread_mutex_trylock(3) - osf1 |
pthread_self(3) - x11r4 |
Similar Topics in the Unix Linux Community |
---|
calling pthread_self (on ubuntu), expensive? |
Difference between handle to the thread HANDLE and thread identifier pthread_t |