Begin changes to sync2

This commit is contained in:
gingerBill
2021-05-20 21:02:05 +01:00
parent 92abddddc5
commit fe74b479c6
4 changed files with 274 additions and 188 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ mutex_lock :: proc(m: ^Mutex) {
_mutex_lock(m);
}
// mutex_lock unlocks m
// mutex_unlock unlocks m
mutex_unlock :: proc(m: ^Mutex) {
_mutex_unlock(m);
}
@@ -103,7 +103,7 @@ rw_mutex_shared_guard :: proc(m: ^RW_Mutex) -> bool {
// A Recusrive_Mutex is a recursive mutual exclusion lock
// A Recursive_Mutex is a recursive mutual exclusion lock
// The zero value for a Recursive_Mutex is an unlocked mutex
//
// A Recursive_Mutex must not be copied after first use