diff options
| author | 2019-10-12 10:28:44 -0400 | |
|---|---|---|
| committer | 2019-10-15 11:55:27 -0400 | |
| commit | a3524879be351f3726a622217d5c2d928ae92b42 (patch) | |
| tree | 5c393f758b397f35810cef87b46ba3d89bd74599 /src/core/hle/kernel/thread.cpp | |
| parent | Kernel: Reverse global accessor removal. (diff) | |
| download | yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.gz yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.xz yuzu-a3524879be351f3726a622217d5c2d928ae92b42.zip | |
Kernel: Clang Format
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 0c11da1e0..3408658e5 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -42,7 +42,7 @@ Thread::~Thread() = default; | |||
| 42 | void Thread::Stop() { | 42 | void Thread::Stop() { |
| 43 | // Cancel any outstanding wakeup events for this thread | 43 | // Cancel any outstanding wakeup events for this thread |
| 44 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), | 44 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), |
| 45 | callback_handle); | 45 | callback_handle); |
| 46 | kernel.ThreadWakeupCallbackHandleTable().Close(callback_handle); | 46 | kernel.ThreadWakeupCallbackHandleTable().Close(callback_handle); |
| 47 | callback_handle = 0; | 47 | callback_handle = 0; |
| 48 | SetStatus(ThreadStatus::Dead); | 48 | SetStatus(ThreadStatus::Dead); |
| @@ -68,13 +68,13 @@ void Thread::WakeAfterDelay(s64 nanoseconds) { | |||
| 68 | // This function might be called from any thread so we have to be cautious and use the | 68 | // This function might be called from any thread so we have to be cautious and use the |
| 69 | // thread-safe version of ScheduleEvent. | 69 | // thread-safe version of ScheduleEvent. |
| 70 | const s64 cycles = Core::Timing::nsToCycles(std::chrono::nanoseconds{nanoseconds}); | 70 | const s64 cycles = Core::Timing::nsToCycles(std::chrono::nanoseconds{nanoseconds}); |
| 71 | Core::System::GetInstance().CoreTiming().ScheduleEvent(cycles, kernel.ThreadWakeupCallbackEventType(), | 71 | Core::System::GetInstance().CoreTiming().ScheduleEvent( |
| 72 | callback_handle); | 72 | cycles, kernel.ThreadWakeupCallbackEventType(), callback_handle); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | void Thread::CancelWakeupTimer() { | 75 | void Thread::CancelWakeupTimer() { |
| 76 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), | 76 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), |
| 77 | callback_handle); | 77 | callback_handle); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | static std::optional<s32> GetNextProcessorId(u64 mask) { | 80 | static std::optional<s32> GetNextProcessorId(u64 mask) { |