浏览代码

Merge pull request #49682 from lyuma/thread_work_done

Consider a thread done if current_work is null
Rémi Verschelde 4 年之前
父节点
当前提交
7e4c466fff
共有 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;
 	}