|
SatCat5
|
Automatic lock or mutex.
SatCat5 interrupt-API concepts.
This nestable mutex object enters a lock/critical-section on creation, and releases the lock when it falls out of scope.
Definition at line 57 of file satcat5/interrupts.h.
#include <interrupts.h>
Public Member Functions | |
| AtomicLock (const char *lbl) | |
| Creating this object starts a critical section. | |
| void | release () |
| Optionally release this lock before the destructor is called. | |
Private Attributes | |
| const char *const | m_lbl |
| satcat5::util::TimeVal | m_tstart |
| bool | m_held |