diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 11:06:16 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 11:06:16 +0000 |
| commit | 21509ae3f4071dc3c520b4cd58e80ade4be41ce4 (patch) | |
| tree | b997ee611d1cb44a18a3bf5b7243c394afc851b0 /src | |
| parent | ad2122a7fc867edcb8af6e4b3d01fb06a0c8a055 (diff) | |
Fix `mutex_lock`
Diffstat (limited to 'src')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 3b2f304e1..d47421a80 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -369,7 +369,7 @@ gb_internal void semaphore_wait(Semaphore *s) { ANNOTATE_LOCK_PRE(m, 0); i32 expected = Internal_Mutex_State_Unlocked; if (m->state().compare_exchange_strong(expected, Internal_Mutex_State_Locked, std::memory_order_acquire)) { - mutex_lock_slow(m, v); + mutex_lock_slow(m, expected); } ANNOTATE_LOCK_POST(m); } |