NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <pd/chPd.h>int ptdKeyDelete(PdKey key);
PRIVATE-DATA
The ptdKeyDelete call deletes a thread-specific data key previously returned by ptdKeyCreate (2K). The thread-specific data values associated with key need not be NULL at the time ptdKeyDelete is called. The application frees storage and performs any cleanup operations needed for data structures related to the deleted key or to associated thread-specific data. The cleanup can be performed before or after invoking ptdKeyDelete. Any attempt to use key after the call to ptdKeyDelete can produce unpredictable results.. There are no destructor functions invoked by ptdKeyDelete.
At actor destruction, all keys still allocated by an actor will silently be deleted.
Upon successful completion a value of 0 is returned. Otherwise, a positive error code is returned.
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