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

Kernel: Protect ARP table with spinlock instead of mutex

This commit is contained in:
Andreas Kling 2022-02-03 01:07:57 +01:00
parent 248832f438
commit 6fbb924bbf
3 changed files with 9 additions and 9 deletions

View file

@ -75,7 +75,7 @@ private:
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override
{
JsonArraySerializer array { builder };
arp_table().for_each_shared([&](const auto& it) {
arp_table().for_each([&](const auto& it) {
auto obj = array.add_object();
obj.add("mac_address", it.value.to_string());
obj.add("ip_address", it.key.to_string());