SDL/src/thread
Ryan C. Gordon 922b872b4f thread: Remove semaphore in thread creation.
This was added so that the new thread definitely has its threadid set, via
SDL_GetCurrentThreadID(), before SDL_CreatThread returns, but this broke
Emscripten, which can't wait on a newly-created thread, since the thread won't
start until a later mainloop iteration.

Now we have the creating thread set this id in SDL_SYS_CreateThread, where
platform-specific logic can figure out how to calculate the new thread's ID
from the parent thread, without using SDL_GetCurrentThreadID().

Fixes #15509.
2026-05-05 00:51:20 -04:00
..
dos thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
generic Updated copyright for 2026 2026-01-01 09:40:08 -08:00
n3ds thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
ps2 thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
psp thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
pthread thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
vita thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
windows thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
SDL_systhread.h Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_thread.c thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00
SDL_thread_c.h thread: Remove semaphore in thread creation. 2026-05-05 00:51:20 -04:00