summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/scheduler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index f2664ce65..c65f82fb7 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -513,13 +513,11 @@ void Scheduler::Shutdown() {
}
SchedulerLock::SchedulerLock(KernelCore& kernel) : kernel{kernel} {
- auto& global_scheduler = kernel.GlobalScheduler();
- global_scheduler.Lock();
+ kernel.GlobalScheduler().Lock();
}
SchedulerLock::~SchedulerLock() {
- auto& global_scheduler = kernel.GlobalScheduler();
- global_scheduler.Unlock();
+ kernel.GlobalScheduler().Unlock();
}
SchedulerLockAndSleep::SchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle,