mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
Kernel: Ignore unobserved BlockResult from Thread::Sleep
Suppress these in preparation for making BlockResult [[nodiscard]].
This commit is contained in:
parent
ddd79fe2cf
commit
a8a834782c
Notes:
sideshowbarker
2024-07-18 22:18:25 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/a8a834782c8 Pull-request: https://github.com/SerenityOS/serenity/pull/5352
@ -450,7 +450,7 @@ void UHCIController::spawn_port_proc()
|
||||
}
|
||||
}
|
||||
}
|
||||
Thread::current()->sleep(sleep_time);
|
||||
(void)Thread::current()->sleep(sleep_time);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ void SyncTask::spawn()
|
||||
dbgln("SyncTask is running");
|
||||
for (;;) {
|
||||
VFS::the().sync();
|
||||
Thread::current()->sleep({ 1, 0 });
|
||||
(void)Thread::current()->sleep({ 1, 0 });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user