156 {
158
159
160 for (fl::size i = 0; i <
mTasks.size();) {
162 auto impl =
t.get_impl();
163
164 if (!impl || impl->is_canceled()) {
165
167
168 } else if (impl->type() == task_type) {
169
170 bool should_run = impl->ready_to_run_frame_task(current_time);
171
172 if (should_run) {
173
174 impl->set_last_run_time(current_time);
175
176
177 if (impl->has_then()) {
178 impl->execute_then();
179 } else {
181 }
182
183
185
186 } else {
187 ++i;
188 }
189 } else {
190 ++i;
191 }
192 }
193}
fl::vector< task > mTasks
void warn_no_then(int task_id, const fl::string &trace_label)
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.