summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/BinaryMutex.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
committerAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
commitfb790b07aeba8e22e4190cf3e1834d11ecde6c96 (patch)
tree4cec7d1b321307b1d5935577631dae116a658a37 /dev/kernel/KernelKit/BinaryMutex.h
parent63a2d92c5dfe976175cda024ec01905d11b43738 (diff)
dev: better .clang-format, ran format command.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/BinaryMutex.h')
-rw-r--r--dev/kernel/KernelKit/BinaryMutex.h50
1 files changed, 24 insertions, 26 deletions
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 <NewKit/Defines.h>
-#include <KernelKit/Timer.h>
#include <CompilerKit/CompilerKit.h>
+#include <KernelKit/Timer.h>
+#include <NewKit/Defines.h>
-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