|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <threads.h> | ||
void*tss_get(tss_t tss_key); | (since C11) | |
Returns the value held in thread-specific storage for the current thread identified bytss_key. Different threads may get different values identified by the same key.
On thread startup (seethrd_create), the values associated with all TSS keys are NULL. Different value may be placed in the thread-specific storage withtss_set.
Contents |
| tss_key | - | thread-specific storage key, obtained fromtss_create and not deleted bytss_delete |
The value on success,NULL on failure.
The POSIX equivalent for this function ispthread_getspecific.
| This section is incomplete Reason: no example |
(C11) | write to thread-specific storage (function)[edit] |