thread: SDL_CreateThread() shouldn't return before the new thread is set up.

Fixes #15290.

(cherry picked from commit 0756603e6d)
This commit is contained in:
Ryan C. Gordon
2026-03-30 10:08:06 -04:00
parent be45038432
commit 2b6bee46b2
2 changed files with 15 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ struct SDL_Thread
SDL_error errbuf;
char *name;
size_t stacksize; // 0 for default, >0 for user-specified stack size.
SDL_Semaphore *ready_sem; // signals when the thread is set up and about to start running.
int(SDLCALL *userfunc)(void *);
void *userdata;
void *data;