tss_create

tss_create

Defined in header <threads.h>
int tss_create( tss_t* tss_key, tss_dtor_t destructor );
(since C11)

Creates new thread-specific storage key and stores it in the object pointed to by tss_key. Although the same key value may be used by different threads, the values bound to the key by tss_set are maintained on a per-thread basis and persist for the life of the calling thread.

The value NULL is associated with the newly created key in all existing threads, and upon thread creation, th