...
authorVolker Birk <vb@pep-project.org>
Sun, 05 Jul 2020 01:03:35 +0200
changeset 275e54a6008b7fa
parent 274 e84175e7bd95
child 276 7c3620e386d6
...
Semaphore.hh
     1.1 --- a/Semaphore.hh	Sat Jul 04 23:58:08 2020 +0200
     1.2 +++ b/Semaphore.hh	Sun Jul 05 01:03:35 2020 +0200
     1.3 @@ -3,6 +3,10 @@
     1.4  
     1.5  namespace pEp {
     1.6      class Semaphore {
     1.7 +        std::mutex mtx;
     1.8 +        std::condition_variable cv;
     1.9 +        bool _stop;
    1.10 +
    1.11      public:
    1.12          Semaphore() : _stop(false) { }
    1.13  
    1.14 @@ -28,11 +32,6 @@
    1.15              _stop = false;
    1.16              cv.notify_all();
    1.17          }
    1.18 -
    1.19 -    private:
    1.20 -        std::mutex mtx;
    1.21 -        std::condition_variable cv;
    1.22 -        bool _stop;
    1.23      };
    1.24  }
    1.25