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
     tss_create(3) tss_get(3) tss_delete(3)

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

AUTHORS
     Jan Adelsbach <jan@jadelsbach.de>

Linux 6.13.6-1-default		  May 9, 2020		Linux 6.13.6-1-default