diff options
author | Liam <byteslice@airmail.cc> | 2023-03-07 18:01:07 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-13 03:09:09 +0100 |
commit | ac6cbb7134d71134e4beae91361a78fa68202c22 (patch) | |
tree | 19ac300007ee99c87138203809005fb708257b21 /src/core/hle/kernel/k_resource_limit.cpp | |
parent | kernel: convert KResourceLimit (diff) | |
download | yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.gz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.bz2 yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.lz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.xz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.zst yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.zip |
Diffstat (limited to 'src/core/hle/kernel/k_resource_limit.cpp')
-rw-r--r-- | src/core/hle/kernel/k_resource_limit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp index b5c353938..fcee26a29 100644 --- a/src/core/hle/kernel/k_resource_limit.cpp +++ b/src/core/hle/kernel/k_resource_limit.cpp @@ -119,7 +119,7 @@ bool KResourceLimit::Reserve(LimitableResource which, s64 value, s64 timeout) { if (m_current_hints[index] + value <= m_limit_values[index] && (timeout < 0 || m_core_timing->GetGlobalTimeNs().count() < timeout)) { m_waiter_count++; - m_cond_var.Wait(&m_lock, timeout, false); + m_cond_var.Wait(std::addressof(m_lock), timeout, false); m_waiter_count--; } else { break; @@ -154,7 +154,7 @@ void KResourceLimit::Release(LimitableResource which, s64 value, s64 hint) { KResourceLimit* CreateResourceLimitForProcess(Core::System& system, s64 physical_memory_size) { auto* resource_limit = KResourceLimit::Create(system.Kernel()); - resource_limit->Initialize(&system.CoreTiming()); + resource_limit->Initialize(std::addressof(system.CoreTiming())); // Initialize default resource limit values. // TODO(bunnei): These values are the system defaults, the limits for service processes are |