From 4fa5b2d05ff502bf83a14cb225db620fcb8a405c Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sun, 5 Jul 2020 01:03:35 +0200 Subject: [PATCH] ... --- Semaphore.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Semaphore.hh b/Semaphore.hh index 67a2fa8..e7d3f06 100644 --- a/Semaphore.hh +++ b/Semaphore.hh @@ -3,6 +3,10 @@ namespace pEp { class Semaphore { + std::mutex mtx; + std::condition_variable cv; + bool _stop; + public: Semaphore() : _stop(false) { } @@ -28,11 +32,6 @@ namespace pEp { _stop = false; cv.notify_all(); } - - private: - std::mutex mtx; - std::condition_variable cv; - bool _stop; }; }