1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Kernel: Switch IPv4Socket receive queue to SinglyLinkedListWithCount<T>

Avoid walking the packet queue, instead use a linked list with a count.
This commit is contained in:
Brian Gianforcaro 2020-08-04 21:35:30 -07:00 committed by Andreas Kling
parent efb0805d8e
commit f3eb7db422
2 changed files with 6 additions and 7 deletions

View file

@ -27,7 +27,7 @@
#pragma once
#include <AK/HashMap.h>
#include <AK/SinglyLinkedList.h>
#include <AK/SinglyLinkedListWithCount.h>
#include <Kernel/DoubleBuffer.h>
#include <Kernel/KBuffer.h>
#include <Kernel/Lock.h>
@ -122,7 +122,7 @@ private:
Optional<KBuffer> data;
};
SinglyLinkedList<ReceivedPacket> m_receive_queue;
SinglyLinkedListWithCount<ReceivedPacket> m_receive_queue;
DoubleBuffer m_receive_buffer;