aboutsummaryrefslogtreecommitdiff
path: root/core/thread
diff options
context:
space:
mode:
authorDale Weiler <weilercdale@gmail.com>2022-03-11 08:30:03 -0500
committerDale Weiler <weilercdale@gmail.com>2022-03-11 08:30:03 -0500
commit7f845bb1655e671c19ae08d6be6b4c4e359a8152 (patch)
tree0f74cb7a3f224e2d0d5d94e41e71ee533bfbaa12 /core/thread
parent0e6de5673b2689b50ebe98a2607d94fcdf9e768d (diff)
fix for spurious wakeups
Diffstat (limited to 'core/thread')
-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)
}