FastLED 3.10.8
Loading...
Searching...
No Matches
fl::task::TimeTask Class Reference

Detailed Description

Definition at line 114 of file task.cpp.hpp.

#include <task.cpp.hpp>

+ Inheritance diagram for fl::task::TimeTask:
+ Collaboration diagram for fl::task::TimeTask:

Public Member Functions

 TimeTask (TaskType type, int interval_ms, optional< TracePoint > trace=nullopt) FL_NO_EXCEPT
 
void auto_register_with_scheduler () FL_NO_EXCEPT override
 
void execute_catch (const Error &error) FL_NO_EXCEPT override
 
void execute_then () FL_NO_EXCEPT override
 
bool has_catch () const FL_NO_EXCEPT override
 
bool has_then () const FL_NO_EXCEPT override
 
int id () const FL_NO_EXCEPT override
 
int interval_ms () const FL_NO_EXCEPT override
 
bool is_auto_registered () const FL_NO_EXCEPT override
 
bool is_canceled () const FL_NO_EXCEPT override
 
bool isRunning () const FL_NO_EXCEPT override
 
u32 last_run_time () const FL_NO_EXCEPT override
 
bool ready_to_run (u32 current_time) const FL_NO_EXCEPT override
 
bool ready_to_run_frame_task (u32) const FL_NO_EXCEPT override
 
void set_canceled () FL_NO_EXCEPT override
 
void set_catch (function< void(const Error &)> on_catch) FL_NO_EXCEPT override
 
void set_id (int id) FL_NO_EXCEPT override
 
void set_interval_ms (int interval_ms) FL_NO_EXCEPT override
 
void set_last_run_time (u32 time) FL_NO_EXCEPT override
 
void set_then (function< void()> on_then) FL_NO_EXCEPT override
 
void stop () FL_NO_EXCEPT override
 
string trace_label () const FL_NO_EXCEPT override
 
TaskType type () const FL_NO_EXCEPT override
 
- Public Member Functions inherited from fl::task::ITaskImpl
virtual ~ITaskImpl () FL_NO_EXCEPT=default
 

Private Attributes

bool mAutoRegistered = false
 
bool mCanceled = false
 
function< void(const Error &)> mCatchCallback
 
bool mHasCatch = false
 
bool mHasThen = false
 
int mIntervalMs
 
u32 mLastRunTime
 
bool mRunning = true
 
int mTaskId
 
function< void()> mThenCallback
 
unique_ptr< string > mTraceLabel
 
TaskType mType
 

The documentation for this class was generated from the following file: