diff options
| author | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-11-01 11:16:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 11:16:33 +0100 |
| commit | bd695e271f1a04a6743a1048b8faf89fd8af9fa6 (patch) | |
| tree | 2e3b08825f463d0088a72d19c7d204bd63789ff3 | |
| parent | fcca61eef89d97f4925b6c1c55dc547bd825571a (diff) | |
Update Semaphore.cc
| -rw-r--r-- | dev/ZKAKit/src/Semaphore.cc | 4 |
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) |
