Added SDL_DetachThread() API.

--HG--
extra : rebase_source : 0e37621bc7ae79dd3f15030e7131aa774ad8df82
This commit is contained in:
Ryan C. Gordon 2013-11-14 00:52:39 -05:00
parent bcaa9c4c22
commit 39184a6ede
8 changed files with 118 additions and 5 deletions

View file

@ -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: */