diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-17 15:12:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 15:12:12 +0200 |
commit | 7e4c466fff69a4d288f01edd12f29650e714d61a (patch) | |
tree | 90b72c19a572fd5567a91f46203e7f45bba89088 | |
parent | 2b0bf20dc0012dde319c4ed45bc30db496a8197c (diff) | |
parent | c21aa9196e1f33cd04d7c25cb973adba5c3e6195 (diff) |
Merge pull request #49682 from lyuma/thread_work_done
Consider a thread done if current_work is null
-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; } |