|
FastLED 3.9.15
|
RAII helper for critical sections (interrupt disable/enable) Automatically disables interrupts on construction and enables on destruction.
Use this for protecting shared data accessed from both ISR and main context.
Example: { critical_section cs; // Interrupts disabled here shared_data = new_value; } // Interrupts automatically re-enabled here
Definition at line 26 of file critical_section.h.
#include <critical_section.h>
Public Member Functions | |
| critical_section () FL_NOEXCEPT | |
| critical_section (const critical_section &) FL_NOEXCEPT=delete | |
| ~critical_section () FL_NOEXCEPT | |
| critical_section & | operator= (const critical_section &) FL_NOEXCEPT=delete |