Definition at line 64 of file scheduler.cpp.hpp.
64 {
66
67
68 for (fl::size i = 0; i <
mTasks.size();) {
70
71 if (!
t.is_valid() ||
t._is_canceled()) {
72
74
75 } else {
76
77 bool should_run =
t._ready_to_run(current_time);
78
79 if (should_run) {
80
81 t._set_last_run_time(current_time);
82
83
86 } else {
88 }
89
90
92 if (is_recurring) {
93 ++i;
94 } else {
95
97
98 }
99 } else {
100 ++i;
101 }
102 }
103 }
105}
fl::vector< Handle > mTasks
void warn_no_then(int task_id, const fl::string &trace_label) FL_NO_EXCEPT
void update_frame_listener_registration() FL_NO_EXCEPT
@ kAtFramerate
Runs at a fixed number of times per second.
@ kEveryMs
Runs after a fixed time interval.
fl::u32 millis() FL_NO_EXCEPT
Universal millisecond timer - returns milliseconds since system startup.
References fl::FL_NO_EXCEPT, fl::task::kAtFramerate, fl::task::kEveryMs, fl::millis(), mTasks, fl::t, update_frame_listener_registration(), and warn_no_then().
Referenced by fl::FxEngine::draw(), and fl::task::run().