FastLED 3.9.15
Loading...
Searching...
No Matches
semaphore.h
Go to the documentation of this file.
1#pragma once
2
3// IWYU pragma: no_include "fl/stl/compiler_control.h"
4// IWYU pragma: no_include "platforms/is_platform.h"
5// IWYU pragma: no_include "platforms/stub/semaphore_stub.h"
6
7// Include platform-specific semaphore implementation
8// This will define FASTLED_MULTITHREADED based on platform capabilities
9#include "platforms/semaphore.h" // IWYU pragma: keep
10
11namespace fl {
12
13// Bind platform implementations to fl:: namespace
14
27template<ptrdiff_t LeastMaxValue = 1>
28using counting_semaphore = fl::platforms::counting_semaphore<LeastMaxValue>; // IWYU pragma: keep
29
40using binary_semaphore = fl::platforms::binary_semaphore;
41
42} // namespace fl
fl::platforms::counting_semaphore< LeastMaxValue > counting_semaphore
Counting semaphore abstraction for FastLED.
Definition semaphore.h:28
fl::platforms::binary_semaphore binary_semaphore
Binary semaphore abstraction for FastLED.
Definition semaphore.h:40
Base definition for an LED controller.
Definition crgb.hpp:179