µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::mutex::type Class Reference

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...
 

Detailed Description

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.

POSIX compatibility
Inspired by pthread_mutexattr_settype() from <pthread.h> (IEEE Std 1003.1, 2013 Edition).

Definition at line 154 of file os-mutex.h.

Member Enumeration Documentation

◆ anonymous enum

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.


The documentation for this class was generated from the following file: