2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Scheduler: Inline global scheduler in Scheduler Lock.

This commit is contained in:
Fernando Sahmkow 2020-02-22 12:39:17 -04:00
parent a1bf353780
commit 3d0a2375ca

View file

@ -513,13 +513,11 @@ void Scheduler::Shutdown() {
} }
SchedulerLock::SchedulerLock(KernelCore& kernel) : kernel{kernel} { SchedulerLock::SchedulerLock(KernelCore& kernel) : kernel{kernel} {
auto& global_scheduler = kernel.GlobalScheduler(); kernel.GlobalScheduler().Lock();
global_scheduler.Lock();
} }
SchedulerLock::~SchedulerLock() { SchedulerLock::~SchedulerLock() {
auto& global_scheduler = kernel.GlobalScheduler(); kernel.GlobalScheduler().Unlock();
global_scheduler.Unlock();
} }
SchedulerLockAndSleep::SchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle, SchedulerLockAndSleep::SchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle,