Defined in header <threads.h> | ||
|---|---|---|
enum {
mtx_plain = /* unspecified */,
mtx_recursive = /* unspecified */,
mtx_timed = /* unspecified */
};
| (since C11) |
When passed to mtx_init, identifies the type of a mutex to create.
| Constant | Explanation |
|---|---|
mtx_plain | plain mutex |
mtx_recursive | recursive mutex |
mtx_timed | timed mutex |
|
(C11) | creates a mutex (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/thread/mtx_types