summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-12 16:28:44 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-15 17:55:27 +0200
commita3524879be351f3726a622217d5c2d928ae92b42 (patch)
tree5c393f758b397f35810cef87b46ba3d89bd74599 /src/core/hle/kernel/thread.cpp
parentKernel: Reverse global accessor removal. (diff)
downloadyuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.gz
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.bz2
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.lz
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.xz
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.tar.zst
yuzu-a3524879be351f3726a622217d5c2d928ae92b42.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp8
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;
void Thread::Stop() {
// Cancel any outstanding wakeup events for this thread
Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(),
- callback_handle);
+ callback_handle);
kernel.ThreadWakeupCallbackHandleTable().Close(callback_handle);
callback_handle = 0;
SetStatus(ThreadStatus::Dead);
@@ -68,13 +68,13 @@ void Thread::WakeAfterDelay(s64 nanoseconds) {
// This function might be called from any thread so we have to be cautious and use the
// thread-safe version of ScheduleEvent.
const s64 cycles = Core::Timing::nsToCycles(std::chrono::nanoseconds{nanoseconds});
- Core::System::GetInstance().CoreTiming().ScheduleEvent(cycles, kernel.ThreadWakeupCallbackEventType(),
- callback_handle);
+ Core::System::GetInstance().CoreTiming().ScheduleEvent(
+ cycles, kernel.ThreadWakeupCallbackEventType(), callback_handle);
}
void Thread::CancelWakeupTimer() {
Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(),
- callback_handle);
+ callback_handle);
}
static std::optional<s32> GetNextProcessorId(u64 mask) {