mirror of
https://github.com/encounter/SDL.git
synced 2025-06-16 11:33:39 +00:00
SWITCH: properly close thread
This commit is contained in:
parent
c451671c4d
commit
25454343e2
@ -67,18 +67,14 @@ SDL_threadID SDL_ThreadID(void)
|
|||||||
void SDL_SYS_WaitThread(SDL_Thread *thread)
|
void SDL_SYS_WaitThread(SDL_Thread *thread)
|
||||||
{
|
{
|
||||||
threadWaitForExit(&thread->handle);
|
threadWaitForExit(&thread->handle);
|
||||||
|
threadClose(&thread->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_SYS_DetachThread(SDL_Thread *thread)
|
void SDL_SYS_DetachThread(SDL_Thread *thread)
|
||||||
{
|
{
|
||||||
// TODO ?
|
if (thread->handle.handle) {
|
||||||
threadClose(&thread->handle);
|
threadClose(&thread->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_SYS_KillThread(SDL_Thread *thread)
|
|
||||||
{
|
|
||||||
// TODO ?
|
|
||||||
threadClose(&thread->handle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
|
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user