diff options
| author | amlal <amlal@el-mahrouss-logic.com> | 2024-03-16 14:22:21 +0100 |
|---|---|---|
| committer | amlal <amlal@el-mahrouss-logic.com> | 2024-03-16 14:22:21 +0100 |
| commit | 55059428bfd6a18451bc1ed3ee64e7bb04c395cd (patch) | |
| tree | 02dd524a2249111e30d2208fd700fa72e31182db /Private/NewKit | |
| parent | 8f9b5e08f53f6e49a1f4c6b20e17c54298da9c44 (diff) | |
HCR-14: See below.
- Pretty big modifications, add kernel mouse.
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/NewKit')
| -rw-r--r-- | Private/NewKit/KernelHeap.hpp | 2 | ||||
| -rw-r--r-- | Private/NewKit/LockDelegate.hpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Private/NewKit/KernelHeap.hpp b/Private/NewKit/KernelHeap.hpp index 52d019b8..6e2e9dbf 100644 --- a/Private/NewKit/KernelHeap.hpp +++ b/Private/NewKit/KernelHeap.hpp @@ -7,7 +7,7 @@ #pragma once // last-rev 30/01/24 -// file: KHeap.hpp +// file: KernelHeap.hpp // description: heap allocation for the kernel. #include <NewKit/Defines.hpp> diff --git a/Private/NewKit/LockDelegate.hpp b/Private/NewKit/LockDelegate.hpp index d43d8562..74cd22e5 100644 --- a/Private/NewKit/LockDelegate.hpp +++ b/Private/NewKit/LockDelegate.hpp @@ -14,7 +14,9 @@ namespace HCore { -template <Size N> +/// @brief Locking delegate class, hangs until limit. +/// @tparam N +template <SizeT N> class LockDelegate final { public: @@ -24,6 +26,7 @@ class LockDelegate final explicit LockDelegate(Boolean *expr) { auto spin = 0U; + while (spin != N) { if (*expr) @@ -46,6 +49,7 @@ class LockDelegate final { return m_LockStatus[kLockDone] == kLockDone; } + bool HasTimedOut() { return m_LockStatus[kLockTimedOut] != kLockTimedOut; |
