From e952ff4a29e2edc96c9ab4a8e46ea2066713fd4e Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 4 Jul 2020 23:58:08 +0200 Subject: [PATCH] ... --- Semaphore.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Semaphore.hh b/Semaphore.hh index a7328bb..67a2fa8 100644 --- a/Semaphore.hh +++ b/Semaphore.hh @@ -4,7 +4,7 @@ namespace pEp { class Semaphore { public: - Semaphore() : _stop(false) {} + Semaphore() : _stop(false) { } void stop() { @@ -18,9 +18,8 @@ namespace pEp { if (!_stop) return; - while(_stop){ + while(_stop) cv.wait(lock); - } } void go()