Reference

pthread_self(3thr)

return identifier of current thread

NAME

pthread_self - return identifier of current thread

SYNOPSIS

#include <pthread.h>

pthread_t pthread_self(void);

DESCRIPTION

pthread_self return the thread identifier for the calling thread.

AUTHOR

Xavier Leroy <[email protected]>

SEE ALSO

pthread_equal(3), pthread_join(3), pthread_detach(3), pthread_setschedparam(3), pthread_getschedparam(3).