diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-19 11:49:16 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-19 11:49:16 +0100 |
| commit | 4d611fab205847578caaa3ddbdadd057c8243914 (patch) | |
| tree | 4fb70b5f5549aaf9a7339644c3ed29008cf610f2 /Private/NewKit | |
| parent | 1071026432726d0ca84aa8291c5abf10079e367f (diff) | |
Kernel: unstable: secret: fix code.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/NewKit')
| -rw-r--r-- | Private/NewKit/LockDelegate.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Private/NewKit/LockDelegate.hpp b/Private/NewKit/LockDelegate.hpp index 74cd22e5..0fd9ba63 100644 --- a/Private/NewKit/LockDelegate.hpp +++ b/Private/NewKit/LockDelegate.hpp @@ -10,12 +10,15 @@ #include <NewKit/Defines.hpp> #define kLockDone (200U) /* job is done */ -#define kLockTimedOut (100U) /* has timed out */ +#define kLockTimedOut (100U) /* job has timed out */ namespace HCore { +/// @brief Lock condition pointer. +typedef Boolean* LockPtr; + /// @brief Locking delegate class, hangs until limit. -/// @tparam N +/// @tparam N the amount of cycles to wait. template <SizeT N> class LockDelegate final { @@ -23,7 +26,7 @@ class LockDelegate final LockDelegate() = delete; public: - explicit LockDelegate(Boolean *expr) + explicit LockDelegate(LockPtr expr) { auto spin = 0U; |
