Interrupts standard locker. More...
#include <cmsis-plus/rtos/os.h>
Public Member Functions | |
Constructors & Destructor | |
| constexpr | lockable () |
| Construct an interrupts lock. | |
| ~lockable () | |
| Destruct the interrupts lock. | |
Public Member Functions | |
| void | lock (void) |
| Lock the interrupts. | |
| bool | try_lock (void) |
| Try to lock the interrupts. | |
| void | unlock (void) |
| Unlock the interrupts. | |
Locker meeting the standard Lockable requirements (30.2.5.3).
Definition at line 704 of file os-sched.h.
|
constexpr |
Definition at line 1185 of file os-sched.h.
|
inline |
Definition at line 1192 of file os-sched.h.
|
inline |
Definition at line 1200 of file os-sched.h.
References os::rtos::interrupts::critical_section::enter().
|
inline |
| true | The interrupts were locked. |
Somehow redundant, since the lock will always succeed; but used to meet the Lockable requirements.
Definition at line 1213 of file os-sched.h.
References os::rtos::interrupts::critical_section::enter().
|
inline |
Definition at line 1223 of file os-sched.h.
References os::rtos::interrupts::critical_section::exit().