summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit/Semaphore.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-16 16:42:09 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-16 16:42:09 +0100
commit57921ca1d52dd3c3c988bf198b903c2da42f391a (patch)
treeb092732bc6c677536aed58366b149b17d1c46537 /dev/Kernel/KernelKit/Semaphore.h
parent52779b9cc5b98ec201cc3a908a009469b4429647 (diff)
ADD: BinaryMutex class, and reworking Semaphore class.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit/Semaphore.h')
-rw-r--r--dev/Kernel/KernelKit/Semaphore.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/dev/Kernel/KernelKit/Semaphore.h b/dev/Kernel/KernelKit/Semaphore.h
index 5d77b84d..f780872a 100644
--- a/dev/Kernel/KernelKit/Semaphore.h
+++ b/dev/Kernel/KernelKit/Semaphore.h
@@ -12,32 +12,5 @@
namespace NeOS
{
- class UserProcess;
- typedef UserProcess& UserProcessRef;
-
- /// @brief Access control class, which locks a task until one is done.
- class Semaphore final
- {
- public:
- explicit Semaphore() = default;
- ~Semaphore() = default;
-
- public:
- bool IsLocked() const;
- bool Unlock() noexcept;
-
- public:
- void WaitForProcess() noexcept;
-
- public:
- bool Lock(UserProcess& process);
- bool LockOrWait(UserProcess& process, TimerInterface* timer);
-
- public:
- NE_COPY_DEFAULT(Semaphore);
-
- private:
- UserProcessRef fLockingProcess;
- };
-} // namespace NeOS
+} // namespace NeOS \ No newline at end of file