diff options
| author | 2018-10-10 10:34:20 -0400 | |
|---|---|---|
| committer | 2018-10-10 10:34:20 -0400 | |
| commit | 68b3d8b7a974780ff1eef3fe5764b2dd9cdb4d32 (patch) | |
| tree | 1c5d3e1b178d7252cd3e752d8f2a99017a0ecb6d /src/core/core.h | |
| parent | Merge pull request #1461 from lioncash/warn (diff) | |
| parent | kernel/thread: Use a regular pointer for the owner/current process (diff) | |
| download | yuzu-68b3d8b7a974780ff1eef3fe5764b2dd9cdb4d32.tar.gz yuzu-68b3d8b7a974780ff1eef3fe5764b2dd9cdb4d32.tar.xz yuzu-68b3d8b7a974780ff1eef3fe5764b2dd9cdb4d32.zip | |
Merge pull request #1469 from lioncash/ptr
kernel/thread: Use a regular pointer for the owner/current process
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core.h b/src/core/core.h index f9a3e97e3..ea4d53914 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -174,11 +174,11 @@ public: | |||
| 174 | /// Gets the scheduler for the CPU core with the specified index | 174 | /// Gets the scheduler for the CPU core with the specified index |
| 175 | const std::shared_ptr<Kernel::Scheduler>& Scheduler(std::size_t core_index); | 175 | const std::shared_ptr<Kernel::Scheduler>& Scheduler(std::size_t core_index); |
| 176 | 176 | ||
| 177 | /// Provides a reference to the current process | 177 | /// Provides a pointer to the current process |
| 178 | Kernel::SharedPtr<Kernel::Process>& CurrentProcess(); | 178 | Kernel::Process* CurrentProcess(); |
| 179 | 179 | ||
| 180 | /// Provides a constant reference to the current process. | 180 | /// Provides a constant pointer to the current process. |
| 181 | const Kernel::SharedPtr<Kernel::Process>& CurrentProcess() const; | 181 | const Kernel::Process* CurrentProcess() const; |
| 182 | 182 | ||
| 183 | /// Provides a reference to the kernel instance. | 183 | /// Provides a reference to the kernel instance. |
| 184 | Kernel::KernelCore& Kernel(); | 184 | Kernel::KernelCore& Kernel(); |
| @@ -246,7 +246,7 @@ inline TelemetrySession& Telemetry() { | |||
| 246 | return System::GetInstance().TelemetrySession(); | 246 | return System::GetInstance().TelemetrySession(); |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | inline Kernel::SharedPtr<Kernel::Process>& CurrentProcess() { | 249 | inline Kernel::Process* CurrentProcess() { |
| 250 | return System::GetInstance().CurrentProcess(); | 250 | return System::GetInstance().CurrentProcess(); |
| 251 | } | 251 | } |
| 252 | 252 | ||