src/timer/os2/SDL_systimer.c
changeset 1850 d5d3a6fe05a1
parent 1635 92947e3a18db
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
1849:b5a4ac87b98c 1850:d5d3a6fe05a1
   180 
   180 
   181 /* Data to handle a single periodic alarm */
   181 /* Data to handle a single periodic alarm */
   182 static int timer_alive = 0;
   182 static int timer_alive = 0;
   183 static SDL_Thread *timer = NULL;
   183 static SDL_Thread *timer = NULL;
   184 
   184 
   185 static int RunTimer(void *unused)
   185 static int SDLCALL RunTimer(void *unused)
   186 {
   186 {
   187         DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);
   187         DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);
   188         while ( timer_alive ) {
   188         while ( timer_alive ) {
   189                 if ( SDL_timer_running ) {
   189                 if ( SDL_timer_running ) {
   190                         SDL_ThreadedTimerCheck();
   190                         SDL_ThreadedTimerCheck();