< C Programming

Summary

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

Condition variable
call_onceensures that a function is called exactly once
cnd_broadcastunblocks all of the threads
cnd_destroyreleases all of the resources
cnd_initcreates a condition variable
cnd_signalunblocks one of the threads
cnd_timedwaitatomically unlocks a mutex
cnd_waitatomically 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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.