FastLED 3.9.15
|
#include <task.h>
Public Member Functions | |
TaskImpl (const TaskImpl &)=delete | |
TaskImpl (TaskImpl &&)=default | |
void | execute_catch (const Error &error) |
void | execute_then () |
bool | has_catch () const |
bool | has_then () const |
int | id () const |
int | interval_ms () const |
bool | is_auto_registered () const |
bool | is_canceled () const |
uint32_t | last_run_time () const |
TaskImpl & | operator= (const TaskImpl &)=delete |
TaskImpl & | operator= (TaskImpl &&)=default |
bool | ready_to_run (uint32_t current_time) const |
bool | ready_to_run_frame_task (uint32_t current_time) const |
void | set_canceled () |
void | set_catch (function< void(const Error &)> on_catch) |
void | set_last_run_time (uint32_t time) |
void | set_then (function< void()> on_then) |
string | trace_label () const |
TaskType | type () const |
Static Public Member Functions | |
static shared_ptr< TaskImpl > | create_after_frame () |
static shared_ptr< TaskImpl > | create_after_frame (const fl::TracePoint &trace) |
static shared_ptr< TaskImpl > | create_at_framerate (int fps) |
static shared_ptr< TaskImpl > | create_at_framerate (int fps, const fl::TracePoint &trace) |
static shared_ptr< TaskImpl > | create_before_frame () |
static shared_ptr< TaskImpl > | create_before_frame (const fl::TracePoint &trace) |
static shared_ptr< TaskImpl > | create_every_ms (int interval_ms) |
static shared_ptr< TaskImpl > | create_every_ms (int interval_ms, const fl::TracePoint &trace) |
Private Member Functions | |
TaskImpl (TaskType type, int interval_ms) | |
TaskImpl (TaskType type, int interval_ms, const fl::TracePoint &trace) | |
void | auto_register_with_scheduler () |
Private Attributes | |
bool | mAutoRegistered = false |
bool | mCanceled = false |
function< void(const Error &)> | mCatchCallback |
bool | mHasCatch = false |
bool | mHasThen = false |
int | mIntervalMs |
uint32_t | mLastRunTime = 0 |
int | mTaskId = 0 |
function< void()> | mThenCallback |
unique_ptr< string > | mTraceLabel |
TaskType | mType |
Friends | |
template<typename T, typename... Args> | |
shared_ptr< T > | make_shared (Args &&... args) |
class | Scheduler |
class | task |