MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / update_progress

Method update_progress

utility/task_manager.cpp:127–140  ·  view source on GitHub ↗

returns true if the task was cancelled before completion

Source from the content-addressed store, hash-verified

125
126// returns true if the task was cancelled before completion
127bool TaskManager::BaseTemplateTaskData::update_progress(bool p_force_refresh) {
128 if (progress_enabled && progress.is_valid()) {
129 if (progress->step(_get_task_description(), get_current_task_step_value(), p_force_refresh)) {
130 if (!is_canceled()) {
131 cancel();
132 }
133 }
134 if (is_done() && auto_close_progress_bar()) {
135 finish_progress();
136 }
137 }
138
139 return is_canceled();
140}
141bool TaskManager::BaseTemplateTaskData::is_timed_out() const {
142 return timed_out;
143}

Callers 2

update_progress_bgMethod · 0.80
main_loopMethod · 0.80

Calls 2

stepMethod · 0.80
is_validMethod · 0.45

Tested by

no test coverage detected