diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-07-18 11:59:25 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-07 11:48:00 +0200 |
commit | 583abc27d879056afdbab0664a15d7c094462e97 (patch) | |
tree | f0dfb2c22b2f5369f5b32c26fdf9853a08b7ee86 /Kernel/Net/IPv4Socket.h | |
parent | edd6c04024990f18e1956aa8039541fc4a57fd6d (diff) | |
download | serenity-583abc27d879056afdbab0664a15d7c094462e97.zip |
Kernel: Migrate IPv4 socket table locking to ProtectedValue
Diffstat (limited to 'Kernel/Net/IPv4Socket.h')
-rw-r--r-- | Kernel/Net/IPv4Socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/IPv4Socket.h b/Kernel/Net/IPv4Socket.h index 811b9be724..318a43f558 100644 --- a/Kernel/Net/IPv4Socket.h +++ b/Kernel/Net/IPv4Socket.h @@ -10,7 +10,7 @@ #include <AK/SinglyLinkedListWithCount.h> #include <Kernel/DoubleBuffer.h> #include <Kernel/KBuffer.h> -#include <Kernel/Locking/Lockable.h> +#include <Kernel/Locking/ProtectedValue.h> #include <Kernel/Net/IPv4.h> #include <Kernel/Net/IPv4SocketTuple.h> #include <Kernel/Net/Socket.h> @@ -31,7 +31,7 @@ public: static KResultOr<NonnullRefPtr<Socket>> create(int type, int protocol); virtual ~IPv4Socket() override; - static Lockable<HashTable<IPv4Socket*>>& all_sockets(); + static ProtectedValue<HashTable<IPv4Socket*>>& all_sockets(); virtual KResult close() override; virtual KResult bind(Userspace<const sockaddr*>, socklen_t) override; |