summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-11 17:36:39 -0400
committerGravatar FernandoS272020-02-11 18:47:31 -0400
commitd23d504d776007c1244a85ac1b7bb67c407067b2 (patch)
treed6e992004bf752819084d648ca8b81fd1fc1db18 /src/core/hle/kernel/kernel.h
parentKernel: Change WaitObject to Synchronization object. In order to better refle... (diff)
downloadyuzu-d23d504d776007c1244a85ac1b7bb67c407067b2.tar.gz
yuzu-d23d504d776007c1244a85ac1b7bb67c407067b2.tar.xz
yuzu-d23d504d776007c1244a85ac1b7bb67c407067b2.zip
Kernel: Refactor synchronization to better match RE
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 fccffaf3a..1eede3063 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -29,6 +29,7 @@ class HandleTable;
29class PhysicalCore; 29class PhysicalCore;
30class Process; 30class Process;
31class ResourceLimit; 31class ResourceLimit;
32class Synchronization;
32class Thread; 33class Thread;
33 34
34/// Represents a single instance of the kernel. 35/// Represents a single instance of the kernel.
@@ -92,6 +93,12 @@ public:
92 /// Gets the an instance of the respective physical CPU core. 93 /// Gets the an instance of the respective physical CPU core.
93 const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; 94 const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const;
94 95
96 /// Gets the an instance of the Synchronization Interface.
97 Kernel::Synchronization& Synchronization();
98
99 /// Gets the an instance of the Synchronization Interface.
100 const Kernel::Synchronization& Synchronization() const;
101
95 /// Stops execution of 'id' core, in order to reschedule a new thread. 102 /// Stops execution of 'id' core, in order to reschedule a new thread.
96 void PrepareReschedule(std::size_t id); 103 void PrepareReschedule(std::size_t id);
97 104