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 --- Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp | 6 +++--- Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp index 71857946..129475c6 100644 --- a/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp @@ -49,7 +49,7 @@ IMPLEMENT_QUERY_INTERFACE( CommandQueueD3D12Impl, IID_CommandQueueD3D12, TBase ) Uint64 CommandQueueD3D12Impl::Submit(ID3D12GraphicsCommandList* commandList) { - std::lock_guard Lock(m_QueueMtx); + std::lock_guard Lock{m_QueueMtx}; auto FenceValue = m_NextFenceValue; // Increment the value before submitting the list @@ -69,7 +69,7 @@ Uint64 CommandQueueD3D12Impl::Submit(ID3D12GraphicsCommandList* commandList) Uint64 CommandQueueD3D12Impl::WaitForIdle() { - std::lock_guard Lock(m_QueueMtx); + std::lock_guard Lock{m_QueueMtx}; Uint64 LastSignaledFenceValue = m_NextFenceValue; Atomics::AtomicIncrement(m_NextFenceValue); @@ -95,7 +95,7 @@ Uint64 CommandQueueD3D12Impl::GetCompletedFenceValue() void CommandQueueD3D12Impl::SignalFence(ID3D12Fence* pFence, Uint64 Value) { - std::lock_guard Lock(m_QueueMtx); + std::lock_guard Lock{m_QueueMtx}; m_pd3d12CmdQueue->Signal(pFence, Value); } diff --git a/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp b/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp index 1c0903d8..041a170d 100644 --- a/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp +++ b/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp @@ -133,7 +133,7 @@ void D3D12DynamicMemoryManager::ReleasePages(std::vector& Page { if (Mgr != nullptr) { - std::lock_guard Lock(Mgr->m_AvailablePagesMtx); + std::lock_guard Lock{Mgr->m_AvailablePagesMtx}; #ifdef DEVELOPMENT --Mgr->m_AllocatedPageCounter; #endif -- cgit v1.2.3