From fb790b07aeba8e22e4190cf3e1834d11ecde6c96 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Apr 2025 13:08:33 +0200 Subject: dev: better .clang-format, ran format command. Signed-off-by: Amlal --- dev/kernel/KernelKit/BinaryMutex.h | 50 ++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'dev/kernel/KernelKit/BinaryMutex.h') diff --git a/dev/kernel/KernelKit/BinaryMutex.h b/dev/kernel/KernelKit/BinaryMutex.h index 660d2e71..5b7200f9 100644 --- a/dev/kernel/KernelKit/BinaryMutex.h +++ b/dev/kernel/KernelKit/BinaryMutex.h @@ -1,41 +1,39 @@ /* ------------------------------------------- - Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. + Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. ------------------------------------------- */ #pragma once -#include -#include #include +#include +#include -namespace Kernel -{ - class USER_PROCESS; +namespace Kernel { +class USER_PROCESS; - /// @brief Access control class, which locks a task until one is done. - class BinaryMutex final - { - public: - explicit BinaryMutex() = default; - ~BinaryMutex() = default; +/// @brief Access control class, which locks a task until one is done. +class BinaryMutex final { + public: + explicit BinaryMutex() = default; + ~BinaryMutex() = default; - public: - bool IsLocked() const; - bool Unlock() noexcept; + public: + bool IsLocked() const; + bool Unlock() noexcept; - public: - BOOL WaitForProcess(const Int16& sec) noexcept; + public: + BOOL WaitForProcess(const Int16& sec) noexcept; - public: - bool Lock(USER_PROCESS& process); - bool LockOrWait(USER_PROCESS& process, TimerInterface* timer); + public: + bool Lock(USER_PROCESS& process); + bool LockOrWait(USER_PROCESS& process, TimerInterface* timer); - public: - NE_COPY_DEFAULT(BinaryMutex) + public: + NE_COPY_DEFAULT(BinaryMutex) - private: - USER_PROCESS fLockingProcess; - }; -} // namespace Kernel + private: + USER_PROCESS fLockingProcess; +}; +} // namespace Kernel -- cgit v1.2.3