50. threads.h (C11)
- Macros:
- thread_local, ONCE_FLAG_INIT, TSS_DTOR_ITERATIONS
- Types:
- cnd_t, thrd_t, tss_t, mtx_t, tss_dtor_t, thrd_start_t, once_flag
- Constants:
-
mtx_plain,
mtx_recursive,
mtx_timed,
thrd_timedout, thrd_success, thrd_busy, thrd_error, thrd_nomem
- Functions:
-
call_once,
cnd_broadcast, cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, cnd_wait,
mtx_destroy, mtx_init, mtx_lock, mtx_timedlock, mtx_trylock, mtx_unlock,
thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, thrd_yield,
tss_create, tss_delete, tss_get, tss_set
See also:
-
en.cppreference.com/w/c/thread
github.com/jtsiomb/c11threads - threads.h implementation using POSIX threads
openmp.org, example - OpenMP is a specification for a set of compiler directives, library routines, and environment variables that can be used to specify high-level parallelism in Fortran and C/C++ programs.