summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit/BinaryMutex.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/Kernel/KernelKit/BinaryMutex.h
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit/BinaryMutex.h')
-rw-r--r--dev/Kernel/KernelKit/BinaryMutex.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/dev/Kernel/KernelKit/BinaryMutex.h b/dev/Kernel/KernelKit/BinaryMutex.h
deleted file mode 100644
index 21b2ca6d..00000000
--- a/dev/Kernel/KernelKit/BinaryMutex.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <NewKit/Defines.h>
-#include <KernelKit/Timer.h>
-#include <CompilerKit/CompilerKit.h>
-
-namespace NeOS
-{
- class UserProcess;
-
- typedef UserProcess& UserProcessRef;
-
- /// @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 WaitForProcess(const Int16& sec) noexcept;
-
- public:
- bool Lock(UserProcess& process);
- bool LockOrWait(UserProcess& process, TimerInterface* timer);
-
- public:
- NE_COPY_DEFAULT(BinaryMutex);
-
- private:
- UserProcessRef fLockingProcess;
- };
-} // namespace NeOS