mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix sync_windows.odin
This commit is contained in:
@@ -58,7 +58,7 @@ mutex_lock :: proc(m: ^Mutex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mutex_try_lock :: proc(m: ^Mutex) -> bool {
|
mutex_try_lock :: proc(m: ^Mutex) -> bool {
|
||||||
return win32.try_enter_critical_section(&m._critical_section) != 0;
|
return bool(win32.try_enter_critical_section(&m._critical_section));
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_unlock :: proc(m: ^Mutex) {
|
mutex_unlock :: proc(m: ^Mutex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user