mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:08:12 +00:00
Kernel: Make block() and yield() automatically call Scheduler::yield().
This exposed some places we were accidentally doing a double yield().
This commit is contained in:
parent
5713c3a0cb
commit
239c0bd6a6
6 changed files with 10 additions and 28 deletions
|
@ -184,7 +184,7 @@ VFS* vfs;
|
|||
Process::create_kernel_process("syncd", [] {
|
||||
for (;;) {
|
||||
Syscall::sync();
|
||||
sleep(1 * TICKS_PER_SECOND);
|
||||
current->sleep(1 * TICKS_PER_SECOND);
|
||||
}
|
||||
});
|
||||
Process::create_kernel_process("Finalizer", [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue