thread_local
From cppreference.com
<
c
|
thread
C
Language
Standard Library
Type support
Dynamic memory management
Error handling
Program utilities
Date and time utilities
Strings library
Algorithms
Numerics
Input/output support
Localization support
Thread support
(C11)
Atomic operations
(C11)
Thread support library
Threads
thrd_create
thrd_equal
thrd_current
thrd_sleep
thrd_yield
thrd_exit
thrd_detach
thrd_join
thrd_success
thrd_timedout thrd_busy
thrd_nomem
thrd_error
Mutual exclusion
mtx_init
mtx_lock
mtx_timedlock
mtx_trylock
mtx_unlock
mtx_destroy
mtx_types
Call once
ONCE_FLAG_INIT
call_once
Condition variables
cnd_init
cnd_signal
cnd_broadcast
cnd_wait
cnd_timedwait
cnd_destroy
Thread-local storage
thread_local
TSS_DTOR_ITERATIONS
tss_create
tss_get
tss_set
tss_delete
Defined in header
<threads.h>
#define thread_local _Thread_local
(since C11)
Convenience macro which can be used to specify that a variable is thread-local.