synchronous
Volker Birk 2020-07-04 23:58:08 +02:00
parent a221997731
commit e952ff4a29
1 changed files with 2 additions and 3 deletions

View File

@ -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()