mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +00:00
Kernel: Release the big process lock while yielding in sys$yield()
Otherwise, a thread calling sched_yield() will prevent other threads in that process from entering the kernel.
This commit is contained in:
@@ -3323,7 +3323,8 @@ int Process::sys$putch(char ch)
|
||||
|
||||
int Process::sys$yield()
|
||||
{
|
||||
return Scheduler::yield();
|
||||
current->yield_without_holding_big_lock();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$beep()
|
||||
|
||||
Reference in New Issue
Block a user