...
authorVolker Birk <vb@pep-project.org>
Sat, 04 Jul 2020 23:58:08 +0200
changeset 274e84175e7bd95
parent 273 5ad339a9db87
child 275 e54a6008b7fa
...
Semaphore.hh
     1.1 --- a/Semaphore.hh	Sat Jul 04 23:46:23 2020 +0200
     1.2 +++ b/Semaphore.hh	Sat Jul 04 23:58:08 2020 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  namespace pEp {
     1.5      class Semaphore {
     1.6      public:
     1.7 -        Semaphore() : _stop(false) {}
     1.8 +        Semaphore() : _stop(false) { }
     1.9  
    1.10          void stop()
    1.11          {
    1.12 @@ -18,9 +18,8 @@
    1.13              if (!_stop)
    1.14                  return;
    1.15  
    1.16 -            while(_stop){
    1.17 +            while(_stop)
    1.18                  cv.wait(lock);
    1.19 -            }
    1.20          }
    1.21  
    1.22          void go()