comparison src/timer/os2/SDL_systimer.c @ 1850:d5d3a6fe05a1

Fixed thread callback calling conventions, updated OS/2 DLL name to SDL12.dll
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 18:57:04 +0000
parents 92947e3a18db
children c121d94672cb a1b03ba2fcd0
comparison
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();