summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-11-01 11:16:33 +0100
committerGitHub <noreply@github.com>2024-11-01 11:16:33 +0100
commitbd695e271f1a04a6743a1048b8faf89fd8af9fa6 (patch)
tree2e3b08825f463d0088a72d19c7d204bd63789ff3 /dev
parentfcca61eef89d97f4925b6c1c55dc547bd825571a (diff)
Update Semaphore.cc
Diffstat (limited to 'dev')
-rw-r--r--dev/ZKAKit/src/Semaphore.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/ZKAKit/src/Semaphore.cc b/dev/ZKAKit/src/Semaphore.cc
index d0c901fa..eb71cde3 100644
--- a/dev/ZKAKit/src/Semaphore.cc
+++ b/dev/ZKAKit/src/Semaphore.cc
@@ -13,8 +13,10 @@ namespace Kernel
{
if (fLockingProcess)
fLockingProcess = nullptr;
+ else
+ return No;
- return fLockingProcess == nullptr;
+ return Yes;
}
Bool Semaphore::Lock(UserProcess* process)