diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 16:16:07 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 16:16:07 +0200 |
| commit | d7897106bb99a082a2066b2948a823da7059c755 (patch) | |
| tree | e75968246bceddae0210d8d478a2ee7a92e58985 /dev/ZKA/NewKit | |
| parent | 607b9fe59c1caefa58d7272702b0668e2a9192a4 (diff) | |
Fix Global Scheduler and fixing ring-3 switch on non MP Scheduler.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ZKA/NewKit')
| -rw-r--r-- | dev/ZKA/NewKit/Array.hxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/dev/ZKA/NewKit/Array.hxx b/dev/ZKA/NewKit/Array.hxx index 9d1dc74a..7538ef02 100644 --- a/dev/ZKA/NewKit/Array.hxx +++ b/dev/ZKA/NewKit/Array.hxx @@ -15,8 +15,16 @@ namespace Kernel class Array final { public: - explicit Array() = default; - ~Array() = default; + explicit Array() + { + for (SizeT i = 0; i < N; i++) + { + if (!fArray[i]) + fArray[i] = T(); + } + } + + ~Array() = default; Array& operator=(const Array&) = default; Array(const Array&) = default; @@ -28,13 +36,7 @@ namespace Kernel Boolean Empty() const { - for (auto Val : fArray) - { - if (Val) - return false; - } - - return true; + return No; } const SizeT Capacity() |
