diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-08 03:53:26 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-08 03:53:26 +0000 |
| commit | 20fbea68913e09adad6bb0a4357e995ceb782871 (patch) | |
| tree | 5da2b6e8a452f5f37a519349fa51a3a5a922c818 /Common/interface | |
| parent | D3D11 backend: cosmetic code changes (diff) | |
| download | DiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.tar.gz DiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.zip | |
More cosmetic code changes
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/ThreadSignal.h | 4 |
1 files changed, 2 insertions, 2 deletions
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::mutex> - std::lock_guard<std::mutex> Lock(m_Mutex); + std::lock_guard<std::mutex> 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<std::mutex> Lock(m_Mutex); + std::lock_guard<std::mutex> Lock{m_Mutex}; m_SignaledValue = 0; m_NumThreadsAwaken = 0; } |
