Browse Source

simplify expressions

pull/5/head
heck 1 year ago
parent
commit
49c124c3db
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Semaphore.hh

+ 2
- 2
Semaphore.hh View File

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