diff options
| author | 2020-02-11 17:36:39 -0400 | |
|---|---|---|
| committer | 2020-02-11 18:47:31 -0400 | |
| commit | d23d504d776007c1244a85ac1b7bb67c407067b2 (patch) | |
| tree | d6e992004bf752819084d648ca8b81fd1fc1db18 /src/core/hle/kernel/kernel.h | |
| parent | Kernel: Change WaitObject to Synchronization object. In order to better refle... (diff) | |
| download | yuzu-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.h | 7 |
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; | |||
| 29 | class PhysicalCore; | 29 | class PhysicalCore; |
| 30 | class Process; | 30 | class Process; |
| 31 | class ResourceLimit; | 31 | class ResourceLimit; |
| 32 | class Synchronization; | ||
| 32 | class Thread; | 33 | class 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 | ||