diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-17 15:04:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-17 15:04:27 +0100 |
commit | 48f7c28a5cee78398c64d94f7dc3c6bf5a66ce77 (patch) | |
tree | c072ef54fa2e311ac8119e2f2f1ed69c5a22a061 /Kernel/Net/NetworkTask.cpp | |
parent | 4f4af24b9d489634a66d818260a7f87964faf421 (diff) | |
download | serenity-48f7c28a5cee78398c64d94f7dc3c6bf5a66ce77.zip |
Kernel: Replace "current" with Thread::current and Process::current
Suggested by Sergey. The currently running Thread and Process are now
Thread::current and Process::current respectively. :^)
Diffstat (limited to 'Kernel/Net/NetworkTask.cpp')
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index a2fbd6a18e..9e3e8b296c 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -109,7 +109,7 @@ void NetworkTask_main() for (;;) { size_t packet_size = dequeue_packet(buffer, buffer_size); if (!packet_size) { - current->wait_on(packet_wait_queue); + Thread::current->wait_on(packet_wait_queue); continue; } if (packet_size < sizeof(EthernetFrameHeader)) { |