MCPcopy Create free account
hub / github.com/FastLED/FastLED / add_task

Method add_task

src/fl/task/scheduler.cpp.hpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int Scheduler::add_task(Handle t) {
15 if (t.is_valid()) {
16 int task_id = mNextTaskId.fetch_add(1);
17 t._set_id(task_id);
18 mTasks.push_back(fl::move(t));
19 return task_id;
20 }
21 return 0; // Invalid task
22}
23
24void Scheduler::update() {
25 u32 current_time = fl::millis();

Callers 7

task.cpp.hppFile · 0.80
execute_fetch_requestFunction · 0.80
FL_TEST_FILEFunction · 0.80
FL_TEST_FILEFunction · 0.80
stress_test_concurrentFunction · 0.80
stress_test_rapidFunction · 0.80

Calls 4

_set_idMethod · 0.80
is_validMethod · 0.45
fetch_addMethod · 0.45
push_backMethod · 0.45

Tested by 2

stress_test_concurrentFunction · 0.64
stress_test_rapidFunction · 0.64