Mutex types. More...
#include <cmsis-plus/rtos/os.h>
Public Types | |
enum | : type_t { normal = 0 , errorcheck = 1 , recursive = 2 , default_ = normal , max_ = recursive } |
Mutex types. More... | |
Mutex types.
Allow to define the behaviour of calls which lock and unlock the mutex. See mutex::lock()
for details.
The mutex type is defined via the mx_type
attribute of the mutex::attributes
class. Valid mutex types are:
An implementation may map mutex::type::default_
to one of the other mutex types.
pthread_mutexattr_settype()
from <pthread.h>
(IEEE Std 1003.1, 2013 Edition). Definition at line 154 of file os-mutex.h.
anonymous enum : type_t |
Mutex types.
Enumerator | |
---|---|
normal | Normal mutex behaviour. |
errorcheck | Check mutex behaviour. |
recursive | Recursive mutex behaviour. |
default_ | Default value. |
max_ | Maximum value, for validation purposes. |
Definition at line 159 of file os-mutex.h.