mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Scheduler: Inline global scheduler in Scheduler Lock.
This commit is contained in:
parent
a1bf353780
commit
3d0a2375ca
1 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue