Adelsbach Enhanced Threading Library

Manual Pages (DD-00013-001)

Enhanced Threading Library > tss_delete (3)
HTML TXT PDF PS
tss_delete(3) Library Functions Manual tss_delete(3)

tss_deletedelete a thread specific data key

library “threads”
#include <threads.h>

int
tss_delete(tss_t *key);

The function () will destroy the given thread-specific data key.

Destructor functions specified by tss_create(3) will not be called when using (). Once the key has been deleted, no destructors will be called at the exit of any active thread. It is the responsibility of the application to ensure that no thread with data on the given key is active anymore, or to otherwise handle the cleanup of any data prior to calling tss_delete().

Upon success tss_create() returns thrd_success, otherwise thrd_error will be returned.

tss_create(3) tss_get(3) tss_set(3)

The tss_create() function first appeared in the C11 standard ISO/IEC 9899:2011.

Jan Adelsbach <jan@jadelsbach.de>

May 9, 2020 Debian