Fixed usage of SRWLOCK from WinAPI. #54 Thanks @wumo !
This commit is contained in:
parent
c9bf1003ac
commit
cac7d7509e
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue