mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
Kernel: Rename ProtectedValue<T> => MutexProtected<T>
Let's make it obvious what we're protecting it with.
This commit is contained in:
parent
81d990b551
commit
c2fc33becd
18 changed files with 57 additions and 56 deletions
|
@ -22,9 +22,9 @@ void UDPSocket::for_each(Function<void(const UDPSocket&)> callback)
|
|||
});
|
||||
}
|
||||
|
||||
static Singleton<ProtectedValue<HashMap<u16, UDPSocket*>>> s_map;
|
||||
static Singleton<MutexProtected<HashMap<u16, UDPSocket*>>> s_map;
|
||||
|
||||
ProtectedValue<HashMap<u16, UDPSocket*>>& UDPSocket::sockets_by_port()
|
||||
MutexProtected<HashMap<u16, UDPSocket*>>& UDPSocket::sockets_by_port()
|
||||
{
|
||||
return *s_map;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue