mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Remove the now defunct LOCKER(..)
macro.
This commit is contained in:
parent
0d5827f865
commit
8d6e9fad40
Notes:
sideshowbarker
2024-07-18 19:07:40 +09:00
Author: https://github.com/bgianfo
Commit: 8d6e9fad40
Pull-request: https://github.com/SerenityOS/serenity/pull/6601
31 changed files with 196 additions and 198 deletions
|
@ -28,14 +28,14 @@ static Lockable<HashTable<NetworkAdapter*>>& all_adapters()
|
|||
|
||||
void NetworkAdapter::for_each(Function<void(NetworkAdapter&)> callback)
|
||||
{
|
||||
LOCKER(all_adapters().lock());
|
||||
Locker locker(all_adapters().lock());
|
||||
for (auto& it : all_adapters().resource())
|
||||
callback(*it);
|
||||
}
|
||||
|
||||
RefPtr<NetworkAdapter> NetworkAdapter::from_ipv4_address(const IPv4Address& address)
|
||||
{
|
||||
LOCKER(all_adapters().lock());
|
||||
Locker locker(all_adapters().lock());
|
||||
for (auto* adapter : all_adapters().resource()) {
|
||||
if (adapter->ipv4_address() == address)
|
||||
return adapter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue