summaryrefslogtreecommitdiffhomepage
path: root/Private/NewKit
diff options
context:
space:
mode:
Diffstat (limited to 'Private/NewKit')
-rw-r--r--Private/NewKit/KernelHeap.hpp2
-rw-r--r--Private/NewKit/LockDelegate.hpp6
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;