aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/thread/thread_unix.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin
index 35b887de1..8e1ab2b2c 100644
--- a/core/thread/thread_unix.odin
+++ b/core/thread/thread_unix.odin
@@ -35,7 +35,7 @@ _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^
t.id = sync.current_thread_id()
- if .Started not_in t.flags {
+ for (.Started not_in t.flags) {
sync.wait(&t.cond, &t.mutex)
}