mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
First unlock and then enable interrupts
This commit is contained in:
parent
985d614be2
commit
9f564f6f7c
@ -60,9 +60,9 @@ public:
|
|||||||
}
|
}
|
||||||
~SmartLockCriticalSectionClass()
|
~SmartLockCriticalSectionClass()
|
||||||
{
|
{
|
||||||
|
this->LockPointer->Unlock();
|
||||||
if (InterruptsEnabled)
|
if (InterruptsEnabled)
|
||||||
CPU::Interrupts(CPU::Enable);
|
CPU::Interrupts(CPU::Enable);
|
||||||
this->LockPointer->Unlock();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/** @brief Please use this macro to create a new critical section. */
|
/** @brief Please use this macro to create a new critical section. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user