feat(kcp, pfa): Add kcp::Spinlock class

This commit is contained in:
Daniel Hammer
2025-03-12 19:55:05 +01:00
parent bd8a1fdbca
commit 2b6c2fa827
7 changed files with 57 additions and 5 deletions
+3 -1
View File
@@ -7,6 +7,8 @@
#pragma once
#include "Memmap.hpp"
#include <CppLib/Spinlock.hpp>
namespace Memory {
class PageFrameAllocator {
struct Page {
@@ -15,7 +17,7 @@ namespace Memory {
};
Page head{};
kcp::Spinlock Lock{};
LargestSection g_section;
public:
PageFrameAllocator(LargestSection section);