Use contextless procs in core:sync instead

This commit is contained in:
Feoramund
2024-09-10 14:52:20 -04:00
parent c3f363cfbc
commit 0a594147af
9 changed files with 33 additions and 49 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ atomic_recursive_mutex_lock :: proc "contextless" (m: ^Atomic_Recursive_Mutex) {
atomic_recursive_mutex_unlock :: proc "contextless" (m: ^Atomic_Recursive_Mutex) {
tid := current_thread_id()
_assert(tid == m.owner, "tid != m.owner")
assert_contextless(tid == m.owner, "tid != m.owner")
m.recursion -= 1
recursion := m.recursion
if recursion == 0 {