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

◆ add_task()

int fl::Scheduler::add_task ( task t)

Definition at line 95 of file async.cpp.

95 {
96 if (t.get_impl()) {
97 t.get_impl()->mTaskId = mNextTaskId++;
98 int task_id = t.get_impl()->mTaskId;
99 mTasks.push_back(fl::move(t));
100 return task_id;
101 }
102 return 0; // Invalid task
103}
int mNextTaskId
Definition async.h:257
fl::vector< task > mTasks
Definition async.h:256
static uint32_t t
Definition Luminova.h:54
constexpr remove_reference< T >::type && move(T &&t) noexcept
Definition move.h:27

References mNextTaskId, fl::move(), mTasks, and t.

Referenced by fl::task::then().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: