summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-08 03:53:26 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-08 03:53:26 +0000
commit20fbea68913e09adad6bb0a4357e995ceb782871 (patch)
tree5da2b6e8a452f5f37a519349fa51a3a5a922c818 /Common/interface
parentD3D11 backend: cosmetic code changes (diff)
downloadDiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.tar.gz
DiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.zip
More cosmetic code changes
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/ThreadSignal.h4
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;
}