mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
AK: Revert Eternal<T> for now since it doesn't work as intended.
This commit is contained in:
parent
fb6dc5350d
commit
bcc00857a4
Notes:
sideshowbarker
2024-07-19 14:48:55 +09:00
Author: https://github.com/awesomekling
Commit: bcc00857a4
14 changed files with 51 additions and 67 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Net/EtherType.h>
|
||||
#include <Kernel/Lock.h>
|
||||
#include <AK/Eternal.h>
|
||||
|
||||
|
||||
//#define ETHERNET_DEBUG
|
||||
#define IPV4_DEBUG
|
||||
|
@ -28,8 +28,10 @@ static void handle_tcp(const EthernetFrameHeader&, int frame_size);
|
|||
|
||||
Lockable<HashMap<IPv4Address, MACAddress>>& arp_table()
|
||||
{
|
||||
static Eternal<Lockable<HashMap<IPv4Address, MACAddress>>> the;
|
||||
return the;
|
||||
static Lockable<HashMap<IPv4Address, MACAddress>>* the;
|
||||
if (!the)
|
||||
the = new Lockable<HashMap<IPv4Address, MACAddress>>;
|
||||
return *the;
|
||||
}
|
||||
|
||||
void NetworkTask_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue