diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/semaphore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/semaphore.cpp b/test/semaphore.cpp index 09124ee..b7e089f 100644 --- a/test/semaphore.cpp +++ b/test/semaphore.cpp @@ -21,7 +21,7 @@ semaphore::acquire() bool semaphore::try_dec() { - std::lock_guard lk {m}; + m.lock(); if (v) { v--; m.unlock(); |