Pth threading bug fix
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40398
This commit is contained in:
parent
60236871ea
commit
dee1deebe1
3 changed files with 12 additions and 11 deletions
10
src/SDL.c
10
src/SDL.c
|
@ -150,6 +150,12 @@ int SDL_InitSubSystem(Uint32 flags)
|
|||
|
||||
int SDL_Init(Uint32 flags)
|
||||
{
|
||||
#if !defined(DISABLE_THREADS) && defined(ENABLE_PTH)
|
||||
if (!pth_init()) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Clear the error message */
|
||||
SDL_ClearError();
|
||||
|
||||
|
@ -223,6 +229,10 @@ void SDL_Quit(void)
|
|||
|
||||
/* Uninstall any parachute signal handlers */
|
||||
SDL_UninstallParachute();
|
||||
|
||||
#if !defined(DISABLE_THREADS) && defined(ENABLE_PTH)
|
||||
pth_kill();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Return the library version number */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue