aboutsummaryrefslogtreecommitdiff
path: root/core/thread
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-27 00:59:40 +0100
committergingerBill <bill@gingerbill.org>2020-06-27 00:59:40 +0100
commit2b18f43b65bc16c921d4f31e61bfcd6d590ab01a (patch)
treeab4ac0da7d5040fe09fdd640f9de1f9713406c5d /core/thread
parent53e15129784b3509364a4238b4bb0617edfa2422 (diff)
Update sys/windows; Add sync.Blocking_Mutex (windows only at the moment)
Diffstat (limited to 'core/thread')
-rw-r--r--core/thread/thread_windows.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin
index e1627ad2c..5d0a4600c 100644
--- a/core/thread/thread_windows.odin
+++ b/core/thread/thread_windows.odin
@@ -95,5 +95,5 @@ terminate :: proc(using thread : ^Thread, exit_code: u32) {
}
yield :: proc() {
- win32.Sleep(0);
+ win32.SwitchToThread();
}