SatCat5
satcat5::irq::AtomicLock Class Referencefinal

Detailed Description

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>

Collaboration diagram for satcat5::irq::AtomicLock:
[legend]

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
 

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