Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Compile with recursive mutexes for emscripten
Browse files Browse the repository at this point in the history
Emscripten actually does support recursive mutexes, so no need to use SDL's fake recursive code.

Background: #5428, #5479
  • Loading branch information
connorjclark authored and slouken committed Apr 7, 2022
1 parent 64c7896 commit 6dbca7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/SDL_config_emscripten.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6dbca7c

Please sign in to comment.