SWITCH: properly close thread

This commit is contained in:
cpasjuste 2018-03-16 17:14:53 +01:00 committed by Dave Murphy
parent c451671c4d
commit 25454343e2
1 changed files with 4 additions and 8 deletions

View File

@ -67,18 +67,14 @@ SDL_threadID SDL_ThreadID(void)
void SDL_SYS_WaitThread(SDL_Thread *thread)
{
threadWaitForExit(&thread->handle);
threadClose(&thread->handle);
}
void SDL_SYS_DetachThread(SDL_Thread *thread)
{
// TODO ?
threadClose(&thread->handle);
}
void SDL_SYS_KillThread(SDL_Thread *thread)
{
// TODO ?
threadClose(&thread->handle);
if (thread->handle.handle) {
threadClose(&thread->handle);
}
}
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)