Browse Source

...

synchronous
Volker Birk 5 years ago
parent
commit
e952ff4a29
  1. 5
      Semaphore.hh

5
Semaphore.hh

@ -4,7 +4,7 @@
namespace pEp { namespace pEp {
class Semaphore { class Semaphore {
public: public:
Semaphore() : _stop(false) {} Semaphore() : _stop(false) { }
void stop() void stop()
{ {
@ -18,9 +18,8 @@ namespace pEp {
if (!_stop) if (!_stop)
return; return;
while(_stop){ while(_stop)
cv.wait(lock); cv.wait(lock);
}
} }
void go() void go()

Loading…
Cancel
Save