Skip to content

Commit

Permalink
WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC ru…
Browse files Browse the repository at this point in the history
…ntime
  • Loading branch information
DavidLudwig committed Nov 15, 2015
1 parent 11d9899 commit a5a80cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/stdcpp/SDL_syscond.cpp
Expand Up @@ -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
Expand Down

0 comments on commit a5a80cd

Please sign in to comment.