summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-01-18 03:08:24 +0100
committerGitHub <noreply@github.com>2022-01-18 03:08:24 +0100
commit101d86897b729ca66caf7cfee246e6f238ecf723 (patch)
tree92b516dd4958ca01bb5544a475011a2634412132 /src/core/hle/kernel/kernel.h
parentMerge pull request #7724 from ameerj/astc_new_nv (diff)
parentcore: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl. (diff)
downloadyuzu-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.h')
-rw-r--r--src/core/hle/kernel/kernel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index b9b423908..0e04fc3bb 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -52,6 +52,7 @@ class KSharedMemory;
class KSharedMemoryInfo;
class KThread;
class KTransferMemory;
+class KWorkerTaskManager;
class KWritableEvent;
class KCodeMemory;
class PhysicalCore;
@@ -343,6 +344,12 @@ public:
/// Gets the current slab resource counts.
const Init::KSlabResourceCounts& SlabResourceCounts() const;
+ /// Gets the current worker task manager, used for dispatching KThread/KProcess tasks.
+ KWorkerTaskManager& WorkerTaskManager();
+
+ /// Gets the current worker task manager, used for dispatching KThread/KProcess tasks.
+ const KWorkerTaskManager& WorkerTaskManager() const;
+
private:
friend class KProcess;
friend class KThread;