mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
fix for spurious wakeups
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user