Fix style issues; Use new attribute @(cold) where appropriate in the new sync package

This commit is contained in:
gingerBill
2021-04-14 20:19:02 +01:00
parent d24784074c
commit 05a181d719
3 changed files with 88 additions and 86 deletions
+2 -1
View File
@@ -38,7 +38,7 @@ _mutex_try_lock :: proc(m: ^Mutex) -> bool {
}
@(cold)
_mutex_lock_slow :: proc(m: ^Mutex, curr_state: _Mutex_State) {
new_state := curr_state; // Make a copy of it
@@ -68,6 +68,7 @@ _mutex_lock_slow :: proc(m: ^Mutex, curr_state: _Mutex_State) {
}
@(cold)
_mutex_unlock_slow :: proc(m: ^Mutex) {
// TODO(bill): Use a Futex here for Linux to improve performance and error handling
}