mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
[idd] remove deprecated locking defines
This commit is contained in:
parent
09df8c41aa
commit
ce23cff12e
@ -23,17 +23,6 @@
|
|||||||
#include <avrt.h>
|
#include <avrt.h>
|
||||||
#include "CDebug.h"
|
#include "CDebug.h"
|
||||||
|
|
||||||
#define LOCK(lock) \
|
|
||||||
while (InterlockedCompareExchange((volatile LONG*)&(lock), 1, 0) != 0) {};
|
|
||||||
|
|
||||||
#define UNLOCK(lock) \
|
|
||||||
InterlockedExchange((volatile LONG*)&(lock), 0);
|
|
||||||
|
|
||||||
#define LOCK_CONTEXT() LOCK(m_contextLock);
|
|
||||||
#define UNLOCK_CONTEXT() UNLOCK(m_contextLock);
|
|
||||||
#define LOCK_ST(st) LOCK((st).lock);
|
|
||||||
#define UNLOCK_ST(st) UNLOCK((st).lock);
|
|
||||||
|
|
||||||
CSwapChainProcessor::CSwapChainProcessor(CIndirectDeviceContext* devContext, IDDCX_SWAPCHAIN hSwapChain,
|
CSwapChainProcessor::CSwapChainProcessor(CIndirectDeviceContext* devContext, IDDCX_SWAPCHAIN hSwapChain,
|
||||||
std::shared_ptr<CD3D11Device> dx11Device, std::shared_ptr<CD3D12Device> dx12Device, HANDLE newFrameEvent) :
|
std::shared_ptr<CD3D11Device> dx11Device, std::shared_ptr<CD3D12Device> dx12Device, HANDLE newFrameEvent) :
|
||||||
m_devContext(devContext),
|
m_devContext(devContext),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user