From 20fbea68913e09adad6bb0a4357e995ceb782871 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 7 Oct 2019 20:53:26 -0700 Subject: More cosmetic code changes --- Common/interface/ThreadSignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/ThreadSignal.h b/Common/interface/ThreadSignal.h index 2026c78f..39c0d87a 100644 --- a/Common/interface/ThreadSignal.h +++ b/Common/interface/ThreadSignal.h @@ -50,7 +50,7 @@ public: // * execute notify_one or notify_all on the std::condition_variable (the lock does not need to be held for notification) { // std::condition_variable works only with std::unique_lock - std::lock_guard Lock(m_Mutex); + std::lock_guard Lock{m_Mutex}; VERIFY(SignalValue != 0, "Signal value must not be 0"); VERIFY(m_SignaledValue == 0 && m_NumThreadsAwaken == 0, "Not all threads have been awaken since the signal was triggered last time, or the signal has not been reset"); m_SignaledValue = SignalValue; @@ -104,7 +104,7 @@ public: void Reset() { - std::lock_guard Lock(m_Mutex); + std::lock_guard Lock{m_Mutex}; m_SignaledValue = 0; m_NumThreadsAwaken = 0; } -- cgit v1.2.3