Mercurial > sdl-ios-xcode
comparison src/timer/SDL_timer.c @ 1117:95b261f445b1
From: Jim Paris <jim_jtan_com>
To: sdl@libsdl.org
Date: Sat, 9 Jul 2005 13:59:33 -0400
Subject: [PATCH] fix locking in src/timer/SYS_timer.c
SDL_SetTimer has a typo in CVS. This code was added since 1.2.8. The
result is that the SDL_timer_mutex is locked twice and never unlocked,
breaking systems that use a threaded timer implementation.
-jim
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 17 Aug 2005 00:19:45 +0000 |
parents | 5ba65305c954 |
children | 173c063d4f55 |
comparison
equal
deleted
inserted
replaced
1116:080ed9ef0609 | 1117:95b261f445b1 |
---|---|
285 SDL_alarm_callback = callback; | 285 SDL_alarm_callback = callback; |
286 retval = SDL_SYS_StartTimer(); | 286 retval = SDL_SYS_StartTimer(); |
287 } | 287 } |
288 } | 288 } |
289 if ( SDL_timer_threaded ) { | 289 if ( SDL_timer_threaded ) { |
290 SDL_mutexP(SDL_timer_mutex); | 290 SDL_mutexV(SDL_timer_mutex); |
291 } | 291 } |
292 | 292 |
293 return retval; | 293 return retval; |
294 } | 294 } |