[Previous] [Contents] [Next]

pthread_key_delete()

Delete thread specific data key

Synopsis:

#include <pthread.h>

int pthread_key_delete( pthread_key_t key );

Library:

libc

Description:

The pthread_key_delete() function deletes the thread specific data key key previously created with pthread_key_create(). The destructor function bound to key isn't called by this function, and won't be called at thread termination. This function may be called from a thread specific data destructor function.

If it's required that any data bound to this key in any threads be released, then this must be performed by the application before the key is deleted.

Returns:

EOK
Success.
EINVAL
Invalid thread specific data key key.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_key_create()


[Previous] [Contents] [Next]