Standard library header <threads.h> (C11)
From cppreference.com
This header is part of concurrency support library and provides support for threads, mutual exclusion, condition variables, and thread-specific storages.
Contents |
[edit] Threads
thrd_t
|
implementation-defined complete object type identifying a thread |
| (C11) |
creates a thread (function) |
| (C11) |
checks if two identifiers refer to the same thread (function) |
| (C11) |
obtains the current thread identifier (function) |
| (C11) |
suspends execution of the calling thread for the given period of time (function) |
| (C11) |
yields the current time slice (function) |
| (C11) |
terminates the calling thread (function) |
| (C11) |
detaches a thread (function) |
| (C11) |
blocks until a thread terminates (function) |
| indicates a thread error status (constant) | |
| thrd_start_t (C11) |
a typedef of the function pointer type int(*)(void*), used by thrd_create (typedef) |
[edit] Mutual exclusion
mtx_t
|
mutex identifier |
| (C11) |
creates a mutex (function) |
| (C11) |
blocks until locks a mutex (function) |
| (C11) |
blocks until locks a mutex or times out (function) |
| (C11) |
locks a mutex or returns without blocking if already locked (function) |
| (C11) |
unlocks a mutex (function) |
| (C11) |
destroys a mutex (function) |
| (C11)(C11)(C11) |
defines the type of a mutex (enum) |
Call once | |
| (C11) |
calls a function exactly once (function) |
[edit] Condition variables
cnd_t
|
condition variable identifier |
| (C11) |
creates a condition variable (function) |
| (C11) |
unblocks one thread blocked on a condition variable (function) |