Update kernel

This commit is contained in:
EnderIce2
2024-01-19 06:47:42 +02:00
parent fd15592608
commit 96daa43d38
282 changed files with 25486 additions and 15700 deletions

View File

@ -60,6 +60,7 @@ private:
void Yield();
public:
bool Locked() { return IsLocked.load(); }
SpinLockData *GetLockData() { return &LockData; }
int Lock(const char *FunctionName);
int Unlock();
@ -74,6 +75,11 @@ private:
LockClass *LockPointer = nullptr;
public:
bool Locked()
{
return this->LockPointer->Locked();
}
SmartLockClass(LockClass &Lock, const char *FunctionName)
{
this->LockPointer = &Lock;
@ -88,6 +94,11 @@ private:
LockClass *LockPointer = nullptr;
public:
bool Locked()
{
return this->LockPointer->Locked();
}
SmartTimeoutLockClass(LockClass &Lock,
const char *FunctionName,
uint64_t Timeout)