Browse Source

simplify expressions

pull/5/head
heck 4 years ago
parent
commit
49c124c3db
  1. 4
      Semaphore.hh

4
Semaphore.hh

@ -23,11 +23,11 @@ namespace pEp {
void try_wait()
{
std::unique_lock<std::mutex> lock(mtx);
if (_stop.load() == false) {
if (!_stop.load()) {
return;
}
while(_stop.load() == true) {
while(_stop.load()) {
cv.wait(lock);
}
}

Loading…
Cancel
Save