FastLED 3.9.15
Loading...
Searching...
No Matches
task.h File Reference
#include "fl/stl/functional.h"
#include "fl/stl/string.h"
#include "fl/system/trace.h"
#include "fl/task/promise.h"
#include "fl/stl/shared_ptr.h"
#include "fl/stl/cstddef.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for task.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::task::CoroutineConfig
 Configuration for OS-level coroutine tasks. More...
 
class  fl::task::Handle
 Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision) More...
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::task
 

Enumerations

enum class  fl::task::TaskType {
  fl::task::kEveryMs , fl::task::kAtFramerate , fl::task::kBeforeFrame , fl::task::kAfterFrame ,
  fl::task::kCoroutine
}
 

Functions

Handle fl::task::after_frame ()
 
Handle fl::task::after_frame (const TracePoint &trace)
 
Handle fl::task::after_frame (function< void()> on_then)
 
Handle fl::task::after_frame (function< void()> on_then, const TracePoint &trace)
 
Handle fl::task::at_framerate (int fps)
 
Handle fl::task::at_framerate (int fps, const TracePoint &trace)
 
Handle fl::task::before_frame ()
 
Handle fl::task::before_frame (const TracePoint &trace)
 
Handle fl::task::coroutine (const CoroutineConfig &config)
 
Handle fl::task::every_ms (int interval_ms)
 
Handle fl::task::every_ms (int interval_ms, const TracePoint &trace)
 
void fl::task::exit_current ()
 

Class Documentation

◆ fl::task::CoroutineConfig

struct fl::task::CoroutineConfig
+ Collaboration diagram for fl::task::CoroutineConfig:
Class Members
optional< int > core_id Pin task to specific CPU core (ESP32 and other dual cores in the future)
function< void()> func
string name = "task"
u8 priority = 5
size_t stack_size = 4096
optional< TracePoint > trace