summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_process.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/k_process.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/k_process.h')
-rw-r--r--src/core/hle/kernel/k_process.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h
index e7c8b5838..c2a672021 100644
--- a/src/core/hle/kernel/k_process.h
+++ b/src/core/hle/kernel/k_process.h
@@ -15,6 +15,7 @@
#include "core/hle/kernel/k_condition_variable.h"
#include "core/hle/kernel/k_handle_table.h"
#include "core/hle/kernel/k_synchronization_object.h"
+#include "core/hle/kernel/k_worker_task.h"
#include "core/hle/kernel/process_capability.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/result.h"
@@ -62,8 +63,7 @@ enum class ProcessStatus {
DebugBreak,
};
-class KProcess final
- : public KAutoObjectWithSlabHeapAndContainer<KProcess, KSynchronizationObject> {
+class KProcess final : public KAutoObjectWithSlabHeapAndContainer<KProcess, KWorkerTask> {
KERNEL_AUTOOBJECT_TRAITS(KProcess, KSynchronizationObject);
public:
@@ -345,6 +345,8 @@ public:
bool IsSignaled() const override;
+ void DoWorkerTaskImpl();
+
void PinCurrentThread(s32 core_id);
void UnpinCurrentThread(s32 core_id);
void UnpinThread(KThread* thread);