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

Move Lock from AK to Kernel, since it only works inside the kernel.

This commit is contained in:
Andreas Kling 2019-03-16 13:18:22 +01:00
parent 15657f0916
commit 313ee8dd19
12 changed files with 14 additions and 25 deletions

View file

@ -2,7 +2,7 @@
#include <AK/Types.h>
#include <AK/Vector.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
class DoubleBuffer {
public:

View file

@ -13,7 +13,7 @@
#include <AK/AKString.h>
#include <AK/Function.h>
#include <AK/kstdio.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
#include <AK/WeakPtr.h>
#include <Kernel/KResult.h>

View file

@ -5,7 +5,7 @@
#include "IO.h"
#include "Scheduler.h"
#include "PIC.h"
#include <AK/Lock.h>
#include <Kernel/Lock.h>
//#define DISK_DEBUG

View file

@ -1,6 +1,6 @@
#pragma once
#include <AK/Lock.h>
#include <Kernel/Lock.h>
#include <AK/RetainPtr.h>
#include <Kernel/DiskDevice.h>
#include "IRQHandler.h"

View file

@ -4,7 +4,7 @@
#include <Kernel/DoubleBuffer.h>
#include <Kernel/IPv4.h>
#include <AK/HashMap.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
#include <AK/SinglyLinkedList.h>
class IPv4SocketHandle;

View file

@ -1,19 +1,13 @@
#pragma once
#include "Assertions.h"
#include "Types.h"
#include "i386.h"
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <Kernel/i386.h>
#include <Kernel/Scheduler.h>
class Process;
extern Process* current;
#ifndef KERNEL
#error This thing is kernel-only right now.
#endif
namespace AK {
static inline dword CAS(volatile dword* mem, dword newval, dword oldval)
{
dword ret;
@ -117,8 +111,3 @@ private:
Lock m_lock;
};
}
using AK::Lock;
using AK::Locker;
using AK::Lockable;

View file

@ -4,7 +4,7 @@
#include <Kernel/kmalloc.h>
#include <Kernel/EtherType.h>
#include <AK/HashTable.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
static Lockable<HashTable<NetworkAdapter*>>& all_adapters()
{

View file

@ -10,7 +10,7 @@
#include <Kernel/UDPSocket.h>
#include <Kernel/Process.h>
#include <Kernel/EtherType.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
//#define ETHERNET_DEBUG
#define IPV4_DEBUG

View file

@ -2,7 +2,7 @@
#include <Kernel/CharacterDevice.h>
#include <AK/Badge.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
class MasterPTY;

View file

@ -1,6 +1,6 @@
#pragma once
#include <AK/Lock.h>
#include <Kernel/Lock.h>
#include <AK/Types.h>
#include <Kernel/FileSystem.h>

View file

@ -12,7 +12,7 @@
#include <AK/Vector.h>
#include <AK/WeakPtr.h>
#include <AK/Weakable.h>
#include <AK/Lock.h>
#include <Kernel/Lock.h>
class FileDescriptor;
class PageDirectory;

View file

@ -1,6 +1,6 @@
#pragma once
#include <AK/Lock.h>
#include <Kernel/Lock.h>
#include <AK/Retainable.h>
#include <AK/RetainPtr.h>
#include <AK/HashTable.h>