Mercurial > sdl-ios-xcode
diff src/SDL.c @ 397:283d348cb624
Pth threading bug fix
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jun 2002 20:42:02 +0000 |
parents | f6ffac90895c |
children | 522e5202014d |
line wrap: on
line diff
--- a/src/SDL.c Mon Jun 10 20:37:39 2002 +0000 +++ b/src/SDL.c Mon Jun 10 20:42:02 2002 +0000 @@ -150,6 +150,12 @@ 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 @@ /* Uninstall any parachute signal handlers */ SDL_UninstallParachute(); + +#if !defined(DISABLE_THREADS) && defined(ENABLE_PTH) + pth_kill(); +#endif } /* Return the library version number */