NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
#include <pd/chPd.h>void* ptdGet(PdKey key);
PRIVATE-DATA
ptdGet returns the value currently bound to key in the calling thread.
The effect of calling ptdGet with a key value not obtained from ptdKeyCreate or after key has been deleted with ptdKeyDelete is undefined.
ptdGet may be called either explicitly or implicitly from a thread-specific data destructor function.
This function is implemented as a macro.
The function ptdGet returns the thread-specific data value associated with the given key. If no thread-specific data value has been associated with key, then the value NULL is returned.
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