![]() |
![]() |
![]() |
Delete thread specific data key
#include <pthread.h> int pthread_key_delete( pthread_key_t key );
libc
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.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |