mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:17:44 +00:00
Revert "AK: Get rid of make_singleton function"
This reverts commit 5a98e329d1
.
This commit is contained in:
parent
8a21491d86
commit
68580d5a8d
31 changed files with 46 additions and 42 deletions
|
@ -63,14 +63,14 @@ void TCPSocket::set_state(State new_state)
|
|||
}
|
||||
}
|
||||
|
||||
static AK::Singleton<Lockable<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>> s_socket_closing;
|
||||
static auto s_socket_closing = AK::make_singleton<Lockable<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>>();
|
||||
|
||||
Lockable<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>& TCPSocket::closing_sockets()
|
||||
{
|
||||
return *s_socket_closing;
|
||||
}
|
||||
|
||||
static AK::Singleton<Lockable<HashMap<IPv4SocketTuple, TCPSocket*>>> s_socket_tuples;
|
||||
static auto s_socket_tuples = AK::make_singleton<Lockable<HashMap<IPv4SocketTuple, TCPSocket*>>>();
|
||||
|
||||
Lockable<HashMap<IPv4SocketTuple, TCPSocket*>>& TCPSocket::sockets_by_tuple()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue