mirror of
https://github.com/Relintai/thread_pool.git
synced 2024-11-12 10:25:29 +01:00
execute() now properly resets the current run stage.
This commit is contained in:
parent
0297e4d86d
commit
862a366e9a
@ -124,6 +124,8 @@ bool ThreadPoolJob::should_return() {
|
||||
void ThreadPoolJob::execute() {
|
||||
ERR_FAIL_COND(!has_method("_execute"));
|
||||
|
||||
_current_run_stage = 0;
|
||||
|
||||
#if VERSION_MAJOR < 4
|
||||
_start_time = OS::get_singleton()->get_system_time_msecs();
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user