summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/scheduler.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-22 17:39:17 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-02-22 17:39:17 +0100
commit3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0 (patch)
treeca5359a2ae4e34608e5564e43bdefe4946e413c8 /src/core/hle/kernel/scheduler.cpp
parentKernel: Correct pending feedback. (diff)
downloadyuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar.gz
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar.bz2
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar.lz
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar.xz
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.tar.zst
yuzu-3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0.zip
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
-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,