aboutsummaryrefslogtreecommitdiff
path: root/core/sync_windows.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-10-29 15:46:23 +0000
committergingerBill <bill@gingerbill.org>2017-10-29 15:46:23 +0000
commit1eb9994d88b874b2f4ac3fdc4d314b1e67fa511b (patch)
tree5dd176e7f4e8677ea935762e7044a4d6e3265520 /core/sync_windows.odin
parenta43b89f36e988df8268ee92ea54017806b3226bb (diff)
Attributes; @(link_name="foo")
Diffstat (limited to 'core/sync_windows.odin')
-rw-r--r--core/sync_windows.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/sync_windows.odin b/core/sync_windows.odin
index 22d441b66..d07687b06 100644
--- a/core/sync_windows.odin
+++ b/core/sync_windows.odin
@@ -36,7 +36,9 @@ semaphore_post :: proc(s: ^Semaphore, count: int) {
win32.release_semaphore(s._handle, i32(count), nil);
}
-semaphore_release :: proc(s: ^Semaphore) #inline { semaphore_post(s, 1); }
+semaphore_release :: inline proc(s: ^Semaphore) {
+ semaphore_post(s, 1);
+}
semaphore_wait :: proc(s: ^Semaphore) {
win32.wait_for_single_object(s._handle, win32.INFINITE);