tss_create
From cppreference.com
Defined in header
<threads.h>
|
||
int tss_create( tss_t* tss_id, tss_dtor_t destructor );
|
(since C11) | |
Creates new thread-specific storage and optionally stores destructor which is called when the storage is deleted. The object pointed to by tss_id
is set to the identifier of the new thread-specific storage.
[edit] Parameters
tss_id | - | pointer to memory location to store the identifier of the thread-specific storage |
destructor | - | pointer to a function to call when the storage is deleted |
[edit] Return value
thrd_success if successful, thrd_error otherwise.