FastLED 3.9.15
Loading...
Searching...
No Matches

◆ binary_semaphore

using fl::binary_semaphore = fl::platforms::binary_semaphore

Binary semaphore abstraction for FastLED.

A counting semaphore with a maximum value of 1. Commonly used for signaling. // IWYU pragma: keep Usage:

fl::binary_semaphore sem(0); // Initial count 0
sem.release(); // Signal
sem.acquire(); // Wait for signal
fl::platforms::binary_semaphore binary_semaphore
Binary semaphore abstraction for FastLED.
Definition semaphore.h:40

Definition at line 40 of file semaphore.h.