Added SDL_GetThreadState

This commit is contained in:
Moritz
2024-12-25 18:46:59 +01:00
committed by Sam Lantinga
parent b7dac5072b
commit ca4f5dd40d
6 changed files with 39 additions and 8 deletions

View File

@@ -456,6 +456,11 @@ void SDL_WaitThread(SDL_Thread *thread, int *status)
}
}
SDL_ThreadState SDL_GetThreadState(SDL_Thread *thread)
{
return (SDL_ThreadState)SDL_GetAtomicInt(&thread->state);
}
void SDL_DetachThread(SDL_Thread *thread)
{
if (!thread) {