tss_set(3) | Library Functions Manual | tss_set(3) |
NAME
tss_set
— set
thread specific data
SYNOPSIS
library “threads”
#include <threads.h>
int
tss_set
(tss_t
*key, void
*value);
DESCRIPTION
The function
tss_set
()
will associate the data given by value to the current
thread instance of the data key. In order to remove
the data association a NULL
can be passed to the
value argument.
Calling
tss_set
()
will not execute the data destructor that might have been supplied to
tss_create(3), as such it may be
called from the aforementioned destructor.
RETURN VALUES
On success tss_set
() will return
thrd_success or thrd_error
otherwise.
SEE ALSO
HISTORY
The tss_set
() function first appeared in
the C11 standard ISO/IEC 9899:2011.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
May 9, 2020 | Debian |