Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thread: Put all important SDL_CreateThread internal data into SDL_Thr…
…ead. This avoids the need to malloc something extra, use a semaphore, etc, and fixes Emscripten with pthreads support, which might not spin up a web worker until after SDL_CreateThread returns and thus can't wait on a semaphore at this point in any case. Fixes Bugzilla #5064.
- Loading branch information
Showing with 44 additions and 97 deletions.
- +2 −2 src/thread/SDL_systhread.h
- +14 −57 src/thread/SDL_thread.c
- +4 −1 src/thread/SDL_thread_c.h
- +2 −2 src/thread/generic/SDL_systhread.c
- +3 −3 src/thread/psp/SDL_systhread.c
- +3 −3 src/thread/pthread/SDL_systhread.c
- +3 −3 src/thread/stdcpp/SDL_systhread.cpp
- +13 −26 src/thread/windows/SDL_systhread.c