diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 06:40:33 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 06:40:33 +0200 |
commit | 2067115c78fb43f525f025e79e347b9bb886c0c9 (patch) | |
tree | 87b3d66d33f42961b36d4cd9c3332a46d9b44e55 /src/core/hle/kernel/k_resource_limit.h | |
parent | Merge pull request #6185 from ameerj/process-reslimit (diff) | |
download | yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.gz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.bz2 yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.lz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.xz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.zst yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.zip |
Diffstat (limited to 'src/core/hle/kernel/k_resource_limit.h')
-rw-r--r-- | src/core/hle/kernel/k_resource_limit.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.h b/src/core/hle/kernel/k_resource_limit.h index 58ae456f1..4542317d0 100644 --- a/src/core/hle/kernel/k_resource_limit.h +++ b/src/core/hle/kernel/k_resource_limit.h @@ -2,9 +2,6 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -// This file references various implementation details from Atmosphere, an open-source firmware for -// the Nintendo Switch. Copyright 2018-2020 Atmosphere-NX. - #pragma once #include <array> @@ -15,8 +12,8 @@ union ResultCode; -namespace Core { -class System; +namespace Core::Timing { +class CoreTiming; } namespace Kernel { @@ -37,7 +34,7 @@ constexpr bool IsValidResourceType(LimitableResource type) { class KResourceLimit final : public Object { public: - explicit KResourceLimit(KernelCore& kernel, Core::System& system); + explicit KResourceLimit(KernelCore& kernel, const Core::Timing::CoreTiming& core_timing_); ~KResourceLimit(); s64 GetLimitValue(LimitableResource which) const; @@ -75,7 +72,6 @@ private: mutable KLightLock lock; s32 waiter_count{}; KLightConditionVariable cond_var; - KernelCore& kernel; - Core::System& system; + const Core::Timing::CoreTiming& core_timing; }; } // namespace Kernel |