From 49c124c3dbdd7f0c0989a51522a0e1386419b5b1 Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 16 Feb 2021 21:10:36 +0100 Subject: [PATCH] simplify expressions --- Semaphore.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Semaphore.hh b/Semaphore.hh index 400e081..0643372 100644 --- a/Semaphore.hh +++ b/Semaphore.hh @@ -23,11 +23,11 @@ namespace pEp { void try_wait() { std::unique_lock lock(mtx); - if (_stop.load() == false) { + if (!_stop.load()) { return; } - while(_stop.load() == true) { + while(_stop.load()) { cv.wait(lock); } }