tss_delete(3) | Library Functions Manual | tss_delete(3) |
NAME
tss_delete
—
delete a thread specific data key
SYNOPSIS
library “threads”
#include <threads.h>
int
tss_delete
(tss_t
*key);
DESCRIPTION
The function
tss_delete
()
will destroy the given thread-specific data key.
Destructor functions specified by
tss_create(3) will not be called
when using
tss_delete
().
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
().
RETURN VALUES
Upon success tss_create
() returns
thrd_success, otherwise
thrd_error will be returned.
SEE ALSO
HISTORY
The tss_create
() function first appeared
in the C11 standard ISO/IEC 9899:2011.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
May 9, 2020 | Debian |