diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-17 21:09:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-17 21:10:32 +0200 |
commit | cee9528168d16ba4fb306df1ae5e2d0afe569dce (patch) | |
tree | dc2346f141a673bbc15a9b8db9e4ffb986f52de1 /Kernel/Net/NetworkTask.cpp | |
parent | a803c4026cf44d47d8f6bcad0854078742699fb0 (diff) | |
download | serenity-cee9528168d16ba4fb306df1ae5e2d0afe569dce.zip |
Kernel: Rename Lock to Mutex
Let's be explicit about what kind of lock this is meant to be.
Diffstat (limited to 'Kernel/Net/NetworkTask.cpp')
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index f65d846b4e..f6f8063eee 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -5,7 +5,7 @@ */ #include <Kernel/Debug.h> -#include <Kernel/Lock.h> +#include <Kernel/Mutex.h> #include <Kernel/Net/ARP.h> #include <Kernel/Net/EtherType.h> #include <Kernel/Net/EthernetFrameHeader.h> @@ -224,7 +224,7 @@ void handle_icmp(const EthernetFrameHeader& eth, const IPv4Packet& ipv4_packet, { NonnullRefPtrVector<IPv4Socket> icmp_sockets; { - Locker locker(IPv4Socket::all_sockets().lock(), Lock::Mode::Shared); + Locker locker(IPv4Socket::all_sockets().lock(), Mutex::Mode::Shared); for (auto* socket : IPv4Socket::all_sockets().resource()) { if (socket->protocol() != (unsigned)IPv4Protocol::ICMP) continue; |