From 3d0a2375ca73ae73d2ed4ee382aa0bb0378242d0 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sat, 22 Feb 2020 12:39:17 -0400 Subject: [PATCH] Scheduler: Inline global scheduler in Scheduler Lock. --- src/core/hle/kernel/scheduler.cpp | 6 ++---- 1 file 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,