mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:17:35 +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:
parent
efb0805d8e
commit
f3eb7db422
2 changed files with 6 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue