mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:05:08 +00:00
Kernel: Require a reason to be passed to Thread::wait_on
The Lock class still permits no reason, but for everything else require a reason to be passed to Thread::wait_on. This makes it easier to diagnose why a Thread is in Queued state.
This commit is contained in:
parent
0c4b0c0312
commit
788b2d64c6
11 changed files with 19 additions and 11 deletions
|
@ -113,7 +113,7 @@ void NetworkTask_main()
|
|||
for (;;) {
|
||||
size_t packet_size = dequeue_packet(buffer, buffer_size);
|
||||
if (!packet_size) {
|
||||
Thread::current()->wait_on(packet_wait_queue);
|
||||
Thread::current()->wait_on(packet_wait_queue, "NetworkTask");
|
||||
continue;
|
||||
}
|
||||
if (packet_size < sizeof(EthernetFrameHeader)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue