27 #ifndef EMBB_BASE_C_THREAD_SPECIFIC_STORAGE_H_ 28 #define EMBB_BASE_C_THREAD_SPECIFIC_STORAGE_H_ 47 #include <embb/base/c/errors.h> 55 typedef struct embb_tss_t {
106 const embb_tss_t* tss
int embb_tss_create(embb_tss_t *tss)
Creates thread-specific storage (TSS) pointer slots.
int embb_tss_set(embb_tss_t *tss, void *value)
Sets thread-specific slot value of the current thread.
opaque_type embb_tss_t
Opaque type representing a TSS.
Definition: thread_specific_storage.h:53
void embb_tss_delete(embb_tss_t *tss)
Deletes all slots of the given TSS.
void * embb_tss_get(const embb_tss_t *tss)
Gets thread-specific TSS slot value of the current thread.