From c2fc33becd8df6b84a7487565287d34e4607d588 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 21 Aug 2021 23:31:15 +0200 Subject: Kernel: Rename ProtectedValue => MutexProtected Let's make it obvious what we're protecting it with. --- Kernel/Net/TCPSocket.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Kernel/Net/TCPSocket.cpp') diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 87ec059409..ac21e380fe 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include @@ -56,16 +56,16 @@ void TCPSocket::set_state(State new_state) evaluate_block_conditions(); } -static Singleton>>> s_socket_closing; +static Singleton>>> s_socket_closing; -ProtectedValue>>& TCPSocket::closing_sockets() +MutexProtected>>& TCPSocket::closing_sockets() { return *s_socket_closing; } -static Singleton>> s_socket_tuples; +static Singleton>> s_socket_tuples; -ProtectedValue>& TCPSocket::sockets_by_tuple() +MutexProtected>& TCPSocket::sockets_by_tuple() { return *s_socket_tuples; } @@ -512,9 +512,9 @@ KResult TCPSocket::close() return result; } -static Singleton> s_sockets_for_retransmit; +static Singleton> s_sockets_for_retransmit; -ProtectedValue& TCPSocket::sockets_for_retransmit() +MutexProtected& TCPSocket::sockets_for_retransmit() { return *s_sockets_for_retransmit; } -- cgit v1.2.3