diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-22 17:39:17 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-22 17:39:17 +0100 |
commit | 3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0 (patch) | |
tree | ca5359a2ae4e34608e5564e43bdefe4946e413c8 /src/core | |
parent | Kernel: Correct pending feedback. (diff) | |
download | yuzu-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')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 6 |
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, |