Added SDL_DetachThread() API.

This commit is contained in:
Ryan C. Gordon
2013-11-14 00:52:39 -05:00
parent ee4465fe4f
commit a71d349f7c
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: */