NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
#include <pd/chPd.h>int ptdThreadId(void);
PRIVATE-DATA
The ptdThreadId function returns the unique thread ID for the calling thread. The thread ID is equal to the thread local identifier as returned by threadSelf(2K).
It may be called either explicitly or implicitly from a thread-specific data destructor function.
This function is implemented as a macro.
The ptdThreadId function returns the thread-specific unique ID.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO