summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-06-21 21:25:50 +0200
committerGitHub <noreply@github.com>2019-06-21 21:25:50 +0200
commit8f8fa82c832f3d98d76857c9f65f6587f0249a1e (patch)
treef5a0aa3299468002c480367932b1f79e58c0e731 /src/core/hle/kernel/process.h
parentMerge pull request #2546 from DarkLordZach/kips (diff)
parentkernel: Differentiate kernel and user processes when picking ID (diff)
downloadyuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar.gz
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar.bz2
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar.lz
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar.xz
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.tar.zst
yuzu-8f8fa82c832f3d98d76857c9f65f6587f0249a1e.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 29e016983..248fd3840 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -73,9 +73,15 @@ public:
ProcessIDMax = 0xFFFFFFFFFFFFFFFF,
};
+ // Used to determine how process IDs are assigned.
+ enum class ProcessType {
+ KernelInternal,
+ Userland,
+ };
+
static constexpr std::size_t RANDOM_ENTROPY_SIZE = 4;
- static SharedPtr<Process> Create(Core::System& system, std::string name);
+ static SharedPtr<Process> Create(Core::System& system, std::string name, ProcessType type);
std::string GetTypeName() const override {
return "Process";