|
FastLED 3.9.15
|
| void fl::task::run | ( | fl::u32 | microseconds = 1000, |
| ExecFlags | flags = ExecFlags::ALL ) |
Run selected task subsystems.
Pumps the requested subsystems and yields for up to microseconds.
Usage:
run() — pump ALL + yield for 1ms (default)run(0) — pump ALL, no yieldrun(250, ExecFlags::SYSTEM) — OS yield only (for DMA wait loops)run(1000, ExecFlags::TASKS | ExecFlags::COROUTINES) — skip OS yield| microseconds | Budget in microseconds (default 1000 = 1ms) |
| flags | Which subsystems to pump (default ALL) |
Definition at line 75 of file executor.cpp.hpp.
References COROUTINES, FL_WARN_ONCE, fl::SingletonThreadLocal< T, N >::instance(), fl::task::Executor::instance(), fl::task::Scheduler::instance(), fl::make_scope_exit(), fl::micros(), fl::min(), SYSTEM, TASKS, fl::task::Scheduler::update(), fl::task::Executor::update_all(), and fl::yield().
Referenced by await_top_level(), fl::detail::delay_impl(), fl::net::http::fetch_update(), loop(), fl::net::http::FetchEngineListener::onEndFrame(), CFastLED::show(), CFastLED::showColor(), fl::ChannelManager::waitForCondition(), and fl::IChannelDriver::waitForCondition().
Here is the call graph for this function:
Here is the caller graph for this function: