FastLED 3.10.10
Loading...
Searching...
No Matches
worker_config.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/stdint.h"
4#include "fl/stl/noexcept.h"
5
6namespace fl {
7
9enum class Core : fl::i8 {
10 Auto = -1,
11 Any = -2,
13 Core0 = 0,
15};
16
27
34
35 constexpr bool isDefault() const FL_NO_EXCEPT {
36 return priority == Priority::Auto && core == Core::Auto;
37 }
38};
39
43 int core = -2;
44 int priority = -1;
45 int observedCore = -1;
46 fl::u32 submittedChunks = 0;
47 fl::u32 completedChunks = 0;
48 fl::u32 totalChunks = 0;
49 fl::u32 maxEncodeUs = 0;
50 fl::u32 maxSubmitUs = 0;
51 bool streamError = false;
52};
53
54} // namespace fl
unsigned char u8
Definition s16x16x4.h:132
signed char i8
Definition s16x16x4.h:131
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Priority
Portable worker scheduling policy, resolved by the selected backend.
@ Low
Generally not recommended for timing-sensitive engine workers.
@ High
At networking priority or above, biased above when supported.
@ Medium
Below networking priority, resolved by the backend scheduler.
Core
Worker task affinity. This does not change peripheral interrupt affinity.
@ Auto
Inherit the engine default, otherwise its legacy policy.
@ Any
Allow the worker to run on any configured RTOS core.
@ CallingCore
Capture the core that creates the worker.
Base definition for an LED controller.
Worker scheduling evidence.
constexpr bool isDefault() const FL_NO_EXCEPT
Shared engine settings, configured before the first transmission.