Skip to content
Permalink
Browse files

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

…ntime
  • Loading branch information
DavidLudwig committed Nov 15, 2015
1 parent 11d9899 commit a5a80cd033073d4e4b9e5b1e4fb61f6324fafcf2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/thread/stdcpp/SDL_syscond.cpp
@@ -128,7 +128,7 @@ SDL_CondWaitTimeout(SDL_cond * cond, SDL_mutex * mutex, Uint32 ms)
}

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) {
cond->cpp_cond.wait(
cpp_lock

0 comments on commit a5a80cd

Please sign in to comment.