C Programming/threads.h

Summary edit

The threads.h header includes the header time.h, defines macros, and declares types, enumeration constants, and functions that support multiple threads of execution.

Function Overview edit

Condition variable
call_once ensures that a function is called exactly once
cnd_broadcast unblocks all of the threads
cnd_destroy releases all of the resources
cnd_init creates a condition variable
cnd_signal unblocks one of the threads
cnd_timedwait atomically unlocks a mutex
cnd_wait atomically unlocks the mutex
Mutex
mtx_destroy
mtx_init
mtx_lock
mtx_timedlock
mtx_trylock
mtx_unlock
Threads
thrd_create
thrd_current
thrd_detach
thrd_equal
thrd_exit
thrd_join
thrd_sleep
thrd_yield
Thread-specific storage
tss_create
tss_delete
tss_get
tss_set