Module rp6::avr::interrupt::mutex

source ·
Expand description

Module to allow safe access of shared data structures within a CriticalSection.

Structs

DynamicMutex implements a guard that is safe for “concurrent” data access on single-core devices that can only experience non-atomic data access via interrupts. It restricts data access to within a CriticalSection, which can only be obtained within a closure given to without_interrupts.
Mutex implements a guard that is safe for “concurrent” data access on single-core devices that can only experience non-atomic data access via interrupts. It restricts data access to within a CriticalSection, which can only be obtained within a closure given to without_interrupts.