Jeroen van Rijn 3 年之前
父節點
當前提交
42371f7aea
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/thread/thread_pool.odin

+ 3 - 3
core/thread/thread_pool.odin

@@ -111,9 +111,9 @@ pool_join :: proc(pool: ^Pool) {
 		for t in pool.threads {
 			if .Started in t.flags {
 				started_count += 1
-			}
-			if .Joined not_in t.flags {
-				join(t)
+				if .Joined not_in t.flags {
+					join(t)
+				}
 			}
 		}
 	}