Scheduler standard locker. More...
#include <cmsis-plus/rtos/os.h>
Public Member Functions | |
Constructors & Destructor | |
constexpr | lockable () |
Construct a lockable object instance. More... | |
~lockable () | |
Destruct the lockable object instance. More... | |
Public Member Functions | |
void | lock (void) |
Lock the scheduler. More... | |
bool | try_lock (void) |
Try to lock the scheduler. More... | |
void | unlock (void) |
Unlock the scheduler. More... | |
Scheduler standard locker.
Locker meeting the standard Lockable
requirements (30.2.5.3).
Definition at line 314 of file os-sched.h.
constexpr os::rtos::scheduler::lockable::lockable | ( | ) |
Construct a lockable object instance.
Definition at line 972 of file os-sched.h.
|
inline |
Destruct the lockable object instance.
Definition at line 984 of file os-sched.h.
|
inline |
Lock the scheduler.
Definition at line 995 of file os-sched.h.
|
inline |
Try to lock the scheduler.
true | The scheduler was locked. |
Somehow redundant, since the lock will always succeed; but used to meet the lockableable requirements.
Definition at line 1008 of file os-sched.h.
|
inline |
Unlock the scheduler.
Definition at line 1020 of file os-sched.h.