mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 08:34:34 +00:00
Fixed usage of SRWLOCK from WinAPI. #54 Thanks @wumo !
This commit is contained in:
parent
c9bf1003ac
commit
cac7d7509e
@ -3330,8 +3330,9 @@ void *aligned_alloc(size_t alignment, size_t size)
|
|||||||
std::shared_mutex m_Mutex;
|
std::shared_mutex m_Mutex;
|
||||||
};
|
};
|
||||||
#define VMA_RW_MUTEX VmaRWMutex
|
#define VMA_RW_MUTEX VmaRWMutex
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32) && defined(WINVER) && WINVER >= 0x0600
|
||||||
// Use SRWLOCK from WinAPI.
|
// Use SRWLOCK from WinAPI.
|
||||||
|
// Minimum supported client = Windows Vista, server = Windows Server 2008.
|
||||||
class VmaRWMutex
|
class VmaRWMutex
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user