NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <pd/chPd.h>int ptdSet(PdKey key, const void *value);
PRIVATE-DATA
ptdSet associates a thread-specific value with a key obtained via a previous call to ptdKeyCreate (2K). Different threads may bind different values to the same key. These values are typically pointers to blocks of dynamically allocated memory that have been reserved for use by the calling thread.
Calling ptdSet from a destructor may result in lost storage.
Upon successful completion, a value of 0 is returned. Otherwise, a positive error code is returned.
The key value is invalid.
Insufficient memory exists to associate the value with the key.
The Private Data Manager is unreachable.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO