Преглед изворни кода

Consider a thread done if current_work is null

Lyuma пре 4 година
родитељ
комит
c21aa9196e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      core/templates/thread_work_pool.h

+ 1 - 1
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;
 	}