Added SDL_DetachThread() API.
--HG-- extra : rebase_source : 0e37621bc7ae79dd3f15030e7131aa774ad8df82
This commit is contained in:
parent
bcaa9c4c22
commit
39184a6ede
8 changed files with 118 additions and 5 deletions
|
@ -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: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue