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

Method task_step

gui/gdre_progress.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void GDREBackgroundProgress::task_step(const String &p_task, int p_step) {
111 //this code is weird, but it prevents deadlock.
112 bool no_updates = true;
113 {
114 _THREAD_SAFE_METHOD_
115 no_updates = updates.is_empty();
116 }
117
118 if (no_updates) {
119 callable_mp(this, &GDREBackgroundProgress::_update).call_deferred();
120 }
121
122 {
123 _THREAD_SAFE_METHOD_
124 updates[p_task] = p_step;
125 }
126}
127
128void GDREBackgroundProgress::end_task(const String &p_task) {
129 callable_mp(this, &GDREBackgroundProgress::_end_task).call_deferred(p_task);

Callers 2

stepMethod · 0.80
progress_task_stepMethod · 0.80

Calls 3

modify_ifMethod · 0.80
set_stepMethod · 0.80
should_redrawMethod · 0.80

Tested by

no test coverage detected