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) }