summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-12 19:03:26 -0400
committerGravatar Lioncash2019-03-12 19:03:28 -0400
commit6eddb60db0173acccb69f6b24c2f64fa0526a7c4 (patch)
tree8aa73fb88a439365093f0ab1e5cf485a0d45d869 /src/core/hle/kernel/process.h
parentMerge pull request #2211 from lioncash/arbiter (diff)
downloadyuzu-6eddb60db0173acccb69f6b24c2f64fa0526a7c4.tar.gz
yuzu-6eddb60db0173acccb69f6b24c2f64fa0526a7c4.tar.xz
yuzu-6eddb60db0173acccb69f6b24c2f64fa0526a7c4.zip
kernel/process: Remove use of global system accessors
Now that we pass in a reference to the system instance, we can utilize it to eliminate the global accessors in Process-related code.
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 2a132c894..47ffd4ad3 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -266,7 +266,7 @@ public:
266 void FreeTLSSlot(VAddr tls_address); 266 void FreeTLSSlot(VAddr tls_address);
267 267
268private: 268private:
269 explicit Process(Core::System& kernel); 269 explicit Process(Core::System& system);
270 ~Process() override; 270 ~Process() override;
271 271
272 /// Checks if the specified thread should wait until this process is available. 272 /// Checks if the specified thread should wait until this process is available.
@@ -330,6 +330,10 @@ private:
330 /// Random values for svcGetInfo RandomEntropy 330 /// Random values for svcGetInfo RandomEntropy
331 std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy; 331 std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy;
332 332
333 /// System context
334 Core::System& system;
335
336 /// Name of this process
333 std::string name; 337 std::string name;
334}; 338};
335 339