mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Kernel: Migrate IPv4 socket table locking to ProtectedValue
This commit is contained in:
parent
edd6c04024
commit
583abc27d8
Notes:
sideshowbarker
2024-07-18 07:20:18 +09:00
Author: https://github.com/boricj
Commit: 583abc27d8
Pull-request: https://github.com/SerenityOS/serenity/pull/8851
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/bgianfo
4 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue