Index of Section 2 Manual Pages
| Interix / SUA | pthread_self.2 | Interix / SUA |
pthread_self(2) pthread_self(2)
pthread_self()
NAME
pthread_self() - get the ID of calling thread
SYNOPSIS
#include
pthread_t pthread_self(void);
DESCRIPTION
The pthread_self(2) function returns the ID of the calling thread.
RETURN VALUES
This function returns the ID of the calling thread. No error codes are
returned.
ERRORS
None.
SEE ALSO
pthread_create(2)
pthread_equal(2)
USAGE NOTES
The pthread_self function is thread safe.
The pthread_self function is not async-signal safe.