|
FastLED 3.10.9
|
ISR-safe storage for a poll-needed callback handle.
Task context installs or clears the handle. ISR context calls invoke(). The callback/context pair is published as one immutable snapshot pointer so an ISR cannot observe a function from one registration and a context from another.
#include <driver.h>
Collaboration diagram for fl::IChannelDriver::PollNeededCallbackSlot:Classes | |
| struct | Snapshot |
Public Member Functions | |
| PollNeededCallbackSlot () FL_NO_EXCEPT | |
| ~PollNeededCallbackSlot () FL_NO_EXCEPT | |
| void | clear () FL_NO_EXCEPT |
| void | invoke () const FL_NO_EXCEPT |
| void | set (PollNeededCallback callback) FL_NO_EXCEPT |
Private Member Functions | |
| void | retire (Snapshot *snapshot) FL_NO_EXCEPT |
Static Private Member Functions | |
| static void | destroySnapshots (Snapshot *snapshot) FL_NO_EXCEPT |
Private Attributes | |
| Snapshot * | mRetired |
| fl::atomic< Snapshot * > | mSnapshot |