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 ONCE_FLAG_INIT /* unspecified */
(since C11)
Expands to a value that can be used to initialize an object of type
once_flag
.
[
edit
]
See also
call_once
(C11)
calls a function exactly once
(function)