mirror of
https://github.com/yawut/SDL.git
synced 2026-09-05 15:46:25 -05:00
Added SDL_DetachThread() API.
This commit is contained in:
@@ -213,4 +213,10 @@ SDL_SYS_WaitThread(SDL_Thread * thread)
|
||||
pthread_join(thread->handle, 0);
|
||||
}
|
||||
|
||||
void
|
||||
SDL_SYS_DetachThread(SDL_Thread * thread)
|
||||
{
|
||||
pthread_detach(thread->handle);
|
||||
}
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
||||
Reference in New Issue
Block a user