Cleaned up thread state handling and added thread object validation

This commit is contained in:
Sam Lantinga 2024-12-26 09:28:01 -08:00
parent 7647f16ae1
commit eb1be89e70
6 changed files with 54 additions and 34 deletions

View file

@ -50,7 +50,7 @@ struct SDL_Thread
SDL_ThreadID threadid;
SYS_ThreadHandle handle;
int status;
SDL_AtomicInt state; /* SDL_THREAD_STATE_* */
SDL_AtomicInt state; /* SDL_ThreadState */
SDL_error errbuf;
char *name;
size_t stacksize; // 0 for default, >0 for user-specified stack size.