![]() |
OS
v1.7.5
Documentation
|
Scoped critical section lock. More...
#include <critical.hpp>
Public Member Functions | |
| lock () noexcept | |
| ~lock () noexcept | |
| operator bool () noexcept | |
Scoped critical section lock.
The `lock` class provides a simple RAII-based mechanism for managing critical sections. When an object of this class is created, it automatically enters a critical section (disabling interrupts). When the object is destroyed, it exits the critical section (restoring interrupts).
|
noexcept |
|
noexcept |
|
explicitnoexcept |