1.1 --- a/src/timer/dummy/SDL_systimer.c Thu Jan 27 10:40:17 2011 -0800
1.2 +++ b/src/timer/dummy/SDL_systimer.c Thu Jan 27 14:45:06 2011 -0800
1.3 @@ -24,7 +24,6 @@
1.4 #if defined(SDL_TIMER_DUMMY) || defined(SDL_TIMERS_DISABLED)
1.5
1.6 #include "SDL_timer.h"
1.7 -#include "../SDL_timer_c.h"
1.8
1.9 void
1.10 SDL_StartTicks(void)
1.11 @@ -44,57 +43,6 @@
1.12 SDL_Unsupported();
1.13 }
1.14
1.15 -#include "SDL_thread.h"
1.16 -
1.17 -/* Data to handle a single periodic alarm */
1.18 -static int timer_alive = 0;
1.19 -static SDL_Thread *timer = NULL;
1.20 -
1.21 -static int
1.22 -RunTimer(void *unused)
1.23 -{
1.24 - while (timer_alive) {
1.25 - if (SDL_timer_running) {
1.26 - SDL_ThreadedTimerCheck();
1.27 - }
1.28 - SDL_Delay(1);
1.29 - }
1.30 - return (0);
1.31 -}
1.32 +#endif /* SDL_TIMER_DUMMY || SDL_TIMERS_DISABLED */
1.33
1.34 -/* This is only called if the event thread is not running */
1.35 -int
1.36 -SDL_SYS_TimerInit(void)
1.37 -{
1.38 - timer_alive = 1;
1.39 - timer = SDL_CreateThread(RunTimer, NULL);
1.40 - if (timer == NULL)
1.41 - return (-1);
1.42 - return (SDL_SetTimerThreaded(1));
1.43 -}
1.44 -
1.45 -void
1.46 -SDL_SYS_TimerQuit(void)
1.47 -{
1.48 - timer_alive = 0;
1.49 - if (timer) {
1.50 - SDL_WaitThread(timer, NULL);
1.51 - timer = NULL;
1.52 - }
1.53 -}
1.54 -
1.55 -int
1.56 -SDL_SYS_StartTimer(void)
1.57 -{
1.58 - SDL_SetError("Internal logic error: threaded timer in use");
1.59 - return (-1);
1.60 -}
1.61 -
1.62 -void
1.63 -SDL_SYS_StopTimer(void)
1.64 -{
1.65 - return;
1.66 -}
1.67 -
1.68 -#endif /* SDL_TIMER_DUMMY || SDL_TIMERS_DISABLED */
1.69 /* vi: set ts=4 sw=4 expandtab: */