mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:05:07 +00:00
Kernel: Add WaitQueue::wait_forever and it use it for all infinite waits.
In preparation for marking BlockingResult [[nodiscard]], there are a few places that perform infinite waits, which we never observe the result of the wait. Instead of suppressing them, add an alternate function which returns void when performing and infinite wait.
This commit is contained in:
parent
4ac286903d
commit
ddd79fe2cf
9 changed files with 15 additions and 9 deletions
|
@ -106,7 +106,7 @@ void NetworkTask_main(void*)
|
|||
for (;;) {
|
||||
size_t packet_size = dequeue_packet(buffer, buffer_size, packet_timestamp);
|
||||
if (!packet_size) {
|
||||
packet_wait_queue.wait_on({}, "NetworkTask");
|
||||
packet_wait_queue.wait_forever("NetworkTask");
|
||||
continue;
|
||||
}
|
||||
if (packet_size < sizeof(EthernetFrameHeader)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue