WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime
authorDavid Ludwig <dludwig@pobox.com>
Sun, 15 Nov 2015 13:04:42 -0500
changeset 9923934692406c03
parent 9922 b066d5fd5fa7
child 9924 355cccccc7dc
WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime
src/thread/stdcpp/SDL_syscond.cpp
     1.1 --- a/src/thread/stdcpp/SDL_syscond.cpp	Wed Nov 25 21:39:28 2015 +0100
     1.2 +++ b/src/thread/stdcpp/SDL_syscond.cpp	Sun Nov 15 13:04:42 2015 -0500
     1.3 @@ -128,7 +128,7 @@
     1.4      }
     1.5  
     1.6      try {
     1.7 -        std::unique_lock<std::recursive_mutex> cpp_lock(mutex->cpp_mutex, std::defer_lock_t());
     1.8 +        std::unique_lock<std::recursive_mutex> cpp_lock(mutex->cpp_mutex, std::adopt_lock_t());
     1.9          if (ms == SDL_MUTEX_MAXWAIT) {
    1.10              cond->cpp_cond.wait(
    1.11                  cpp_lock