mirror of https://github.com/encounter/SDL.git
WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime
This commit is contained in:
parent
11d98995da
commit
a5a80cd033
|
@ -128,7 +128,7 @@ SDL_CondWaitTimeout(SDL_cond * cond, SDL_mutex * mutex, Uint32 ms)
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
std::unique_lock<std::recursive_mutex> cpp_lock(mutex->cpp_mutex, std::defer_lock_t());
|
std::unique_lock<std::recursive_mutex> cpp_lock(mutex->cpp_mutex, std::adopt_lock_t());
|
||||||
if (ms == SDL_MUTEX_MAXWAIT) {
|
if (ms == SDL_MUTEX_MAXWAIT) {
|
||||||
cond->cpp_cond.wait(
|
cond->cpp_cond.wait(
|
||||||
cpp_lock
|
cpp_lock
|
||||||
|
|
Loading…
Reference in New Issue