mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +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()
|
t.id = sync.current_thread_id()
|
||||||
|
|
||||||
if .Started not_in t.flags {
|
for (.Started not_in t.flags) {
|
||||||
sync.wait(&t.cond, &t.mutex)
|
sync.wait(&t.cond, &t.mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user