Implemented SmartCriticalSection

This commit is contained in:
Alex
2022-10-21 03:49:12 +03:00
parent 2f7b871aa0
commit 5d41d36bd8
9 changed files with 59 additions and 30 deletions

View File

@ -7,7 +7,7 @@ namespace Memory
{
void Virtual::Map(void *VirtualAddress, void *PhysicalAddress, uint64_t Flags)
{
SMARTLOCK(this->MemoryLock);
SmartLock(this->MemoryLock);
if (!this->Table)
{
error("No page table");
@ -85,7 +85,7 @@ namespace Memory
void Virtual::Unmap(void *VirtualAddress)
{
SMARTLOCK(this->MemoryLock);
SmartLock(this->MemoryLock);
if (!this->Table)
{
error("No page table");