FastLED 3.9.15
Loading...
Searching...
No Matches
fl::isr::critical_section Class Reference

Detailed Description

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_sectionoperator= (const critical_section &) FL_NOEXCEPT=delete
 

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