fix for spurious wakeups

This commit is contained in:
Dale Weiler
2022-03-11 08:30:03 -05:00
parent 0e6de5673b
commit 7f845bb165

View File

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