tss_set

tss_set

Defined in header <threads.h>
int tss_set( tss_t tss_id, void *val );
(since C11)

Sets the value of the thread-specific storage identified by tss_id for the current thread to val. Different threads may set different values to the same key.

The destructor, if available, is not invoked.

Parameters

tss_id - thread-specific storage key, obtained from tss_create and not deleted by tss_de