You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Consider a thread done if current_work is null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user