diff options
author | Lyuma <xn.lyuma@gmail.com> | 2021-06-17 05:22:43 -0700 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2021-06-17 05:22:43 -0700 |
commit | c21aa9196e1f33cd04d7c25cb973adba5c3e6195 (patch) | |
tree | 9d5b8a1a597e7050490ac2624920bb1034aed819 /core | |
parent | dd39855c0a19f2d9a9c76b2f8b204e96d94d31e3 (diff) |
Consider a thread done if current_work is null
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/thread_work_pool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/thread_work_pool.h b/core/templates/thread_work_pool.h index 9f7a692cc5..b242648bc8 100644 --- a/core/templates/thread_work_pool.h +++ b/core/templates/thread_work_pool.h @@ -105,7 +105,7 @@ public: } bool is_done_dispatching() const { - ERR_FAIL_COND_V(current_work == nullptr, false); + ERR_FAIL_COND_V(current_work == nullptr, true); return index.load(std::memory_order_acquire) >= current_work->max_elements; } |