From e2e01ed3c503cb8d93446abea162ccf9abd56201 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 28 Mar 2026 04:14:54 +0100 Subject: [FEAT] src: Add libThread and ThreadKit framework, rework requirements as well. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Atom.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/kernel/NeKit/Atom.h') diff --git a/src/kernel/NeKit/Atom.h b/src/kernel/NeKit/Atom.h index c23508f6..53ab661e 100644 --- a/src/kernel/NeKit/Atom.h +++ b/src/kernel/NeKit/Atom.h @@ -10,7 +10,7 @@ namespace Kernel { -template +template class Atom final { public: explicit Atom() = default; @@ -21,29 +21,29 @@ class Atom final { Atom(const Atom&) = delete; public: - using Type = TypeAtomic; - using Ref = TypeAtomic&; - using ConstRef = const TypeAtomic&; + using Type = AtomicType; + using Ref = AtomicType&; + using ConstRef = const AtomicType&; - const TypeAtomic& operator[](const TypeAtomic& bit) { - return (fArrayOfAtoms & (TypeAtomic{} << bit)); + const AtomicType& operator[](const AtomicType& bit) { + return (fArrayOfAtoms & (AtomicType{} << bit)); } - void operator|(const TypeAtomic& bit) { fArrayOfAtoms |= (TypeAtomic{1} << bit); } + void operator|(const AtomicType& bit) { fArrayOfAtoms |= (AtomicType{1} << bit); } - Atom& operator|=(const TypeAtomic& bit) { + Atom& operator|=(const AtomicType& bit) { this->operator|(bit); return *this; } - friend bool operator==(Atom& atomic, const TypeAtomic& idx) { + friend bool operator==(Atom& atomic, const AtomicType& idx) { return atomic[idx] == idx; } - friend bool operator!=(Atom& atomic, const TypeAtomic& idx) { + friend bool operator!=(Atom& atomic, const AtomicType& idx) { return atomic[idx] != idx; } private: - TypeAtomic fArrayOfAtoms; + AtomicType fArrayOfAtoms; }; } // namespace Kernel -- cgit v1.2.3