diff options
author | bunnei <bunneidev@gmail.com> | 2022-01-18 03:08:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 03:08:24 +0100 |
commit | 101d86897b729ca66caf7cfee246e6f238ecf723 (patch) | |
tree | 92b516dd4958ca01bb5544a475011a2634412132 /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #7724 from ameerj/astc_new_nv (diff) | |
parent | core: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl. (diff) | |
download | yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar.gz yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar.bz2 yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar.lz yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar.xz yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.tar.zst yuzu-101d86897b729ca66caf7cfee246e6f238ecf723.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 0b618fb46..e5cf9abb3 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -37,6 +37,7 @@ #include "core/hle/kernel/k_shared_memory.h" #include "core/hle/kernel/k_slab_heap.h" #include "core/hle/kernel/k_thread.h" +#include "core/hle/kernel/k_worker_task_manager.h" #include "core/hle/kernel/kernel.h" #include "core/hle/kernel/physical_core.h" #include "core/hle/kernel/service_thread.h" @@ -797,6 +798,8 @@ struct KernelCore::Impl { std::array<u64, Core::Hardware::NUM_CPU_CORES> svc_ticks{}; + KWorkerTaskManager worker_task_manager; + // System context Core::System& system; }; @@ -1137,6 +1140,14 @@ const Init::KSlabResourceCounts& KernelCore::SlabResourceCounts() const { return impl->slab_resource_counts; } +KWorkerTaskManager& KernelCore::WorkerTaskManager() { + return impl->worker_task_manager; +} + +const KWorkerTaskManager& KernelCore::WorkerTaskManager() const { + return impl->worker_task_manager; +} + bool KernelCore::IsPhantomModeForSingleCore() const { return impl->IsPhantomModeForSingleCore(); } |