1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Everywhere: Replace AK::Singleton => Singleton

This commit is contained in:
Andreas Kling 2021-08-07 21:34:11 +02:00
parent eb60cb156d
commit c94c15d45c
35 changed files with 40 additions and 40 deletions

View file

@ -26,7 +26,7 @@
namespace Kernel {
static AK::Singleton<ProtectedValue<HashTable<IPv4Socket*>>> s_table;
static Singleton<ProtectedValue<HashTable<IPv4Socket*>>> s_table;
using BlockFlags = Thread::FileDescriptionBlocker::BlockFlags;

View file

@ -19,7 +19,7 @@
namespace Kernel {
static AK::Singleton<ProtectedValue<LocalSocket::List>> s_list;
static Singleton<ProtectedValue<LocalSocket::List>> s_list;
static ProtectedValue<LocalSocket::List>& all_sockets()
{

View file

@ -20,7 +20,7 @@
namespace Kernel {
static AK::Singleton<NetworkingManagement> s_the;
static Singleton<NetworkingManagement> s_the;
NetworkingManagement& NetworkingManagement::the()
{

View file

@ -16,7 +16,7 @@
namespace Kernel {
static AK::Singleton<ProtectedValue<HashMap<IPv4Address, MACAddress>>> s_arp_table;
static Singleton<ProtectedValue<HashMap<IPv4Address, MACAddress>>> s_arp_table;
class ARPTableBlocker : public Thread::Blocker {
public:
@ -80,7 +80,7 @@ protected:
}
};
static AK::Singleton<ARPTableBlockCondition> s_arp_table_block_condition;
static Singleton<ARPTableBlockCondition> s_arp_table_block_condition;
ARPTableBlocker::ARPTableBlocker(IPv4Address ip_addr, Optional<MACAddress>& addr)
: m_ip_addr(ip_addr)

View file

@ -54,14 +54,14 @@ void TCPSocket::set_state(State new_state)
evaluate_block_conditions();
}
static AK::Singleton<ProtectedValue<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>> s_socket_closing;
static Singleton<ProtectedValue<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>> s_socket_closing;
ProtectedValue<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>& TCPSocket::closing_sockets()
{
return *s_socket_closing;
}
static AK::Singleton<ProtectedValue<HashMap<IPv4SocketTuple, TCPSocket*>>> s_socket_tuples;
static Singleton<ProtectedValue<HashMap<IPv4SocketTuple, TCPSocket*>>> s_socket_tuples;
ProtectedValue<HashMap<IPv4SocketTuple, TCPSocket*>>& TCPSocket::sockets_by_tuple()
{
@ -512,7 +512,7 @@ KResult TCPSocket::close()
return result;
}
static AK::Singleton<ProtectedValue<HashTable<TCPSocket*>>> s_sockets_for_retransmit;
static Singleton<ProtectedValue<HashTable<TCPSocket*>>> s_sockets_for_retransmit;
ProtectedValue<HashTable<TCPSocket*>>& TCPSocket::sockets_for_retransmit()
{

View file

@ -22,7 +22,7 @@ void UDPSocket::for_each(Function<void(const UDPSocket&)> callback)
});
}
static AK::Singleton<ProtectedValue<HashMap<u16, UDPSocket*>>> s_map;
static Singleton<ProtectedValue<HashMap<u16, UDPSocket*>>> s_map;
ProtectedValue<HashMap<u16, UDPSocket*>>& UDPSocket::sockets_by_port()
{