diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-29 16:24:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 16:24:52 +0100 |
commit | 6aee148b170e6886e58a3996f729b2cc87329e95 (patch) | |
tree | 39efd9469af6a922ee5f38d906940412333c1455 /src/core/hle/kernel/svc/svc_lock.cpp | |
parent | Merge pull request #11827 from liamwhite/preallocated (diff) | |
parent | kernel: make sure new process is in list (diff) | |
download | yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.gz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.bz2 yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.lz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.xz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.zst yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc/svc_lock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc/svc_lock.cpp b/src/core/hle/kernel/svc/svc_lock.cpp index 1d7bc4246..5f0833fcb 100644 --- a/src/core/hle/kernel/svc/svc_lock.cpp +++ b/src/core/hle/kernel/svc/svc_lock.cpp @@ -17,7 +17,7 @@ Result ArbitrateLock(Core::System& system, Handle thread_handle, u64 address, u3 R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory); R_UNLESS(Common::IsAligned(address, sizeof(u32)), ResultInvalidAddress); - R_RETURN(GetCurrentProcess(system.Kernel()).WaitForAddress(thread_handle, address, tag)); + R_RETURN(KConditionVariable::WaitForAddress(system.Kernel(), thread_handle, address, tag)); } /// Unlock a mutex @@ -28,7 +28,7 @@ Result ArbitrateUnlock(Core::System& system, u64 address) { R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory); R_UNLESS(Common::IsAligned(address, sizeof(u32)), ResultInvalidAddress); - R_RETURN(GetCurrentProcess(system.Kernel()).SignalToAddress(address)); + R_RETURN(KConditionVariable::SignalToAddress(system.Kernel(), address)); } Result ArbitrateLock64(Core::System& system, Handle thread_handle, uint64_t address, uint32_t tag) { |