WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime

This commit is contained in:
David Ludwig 2015-11-15 13:04:42 -05:00
parent 11d98995da
commit a5a80cd033
1 changed files with 1 additions and 1 deletions

View File

@ -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