mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Added SDL_GetThreadState
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user