فهرست منبع

Compile with recursive mutexes for emscripten

Emscripten actually does support recursive mutexes, so no need to use SDL's fake recursive code.

Background: #5428, #5479
Connor Clark 3 سال پیش
والد
کامیت
6dbca7c911
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      include/SDL_config_emscripten.h

+ 1 - 0
include/SDL_config_emscripten.h

@@ -185,6 +185,7 @@
 /* Enable various threading systems */
 #ifdef __EMSCRIPTEN_PTHREADS__
 #define SDL_THREAD_PTHREAD 1
+#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
 #endif
 
 /* Enable various timer systems */