# HG changeset patch # User Ryan C. Gordon # Date 1124237985 0 # Node ID 95b261f445b1b11db83d25be080e94f0062ec1fe # Parent 080ed9ef0609b2ab7eba9cfdcb7f3993d656e48c From: Jim Paris 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 diff -r 080ed9ef0609 -r 95b261f445b1 src/timer/SDL_timer.c --- a/src/timer/SDL_timer.c Tue Aug 16 09:57:16 2005 +0000 +++ b/src/timer/SDL_timer.c Wed Aug 17 00:19:45 2005 +0000 @@ -287,7 +287,7 @@ } } if ( SDL_timer_threaded ) { - SDL_mutexP(SDL_timer_mutex); + SDL_mutexV(SDL_timer_mutex); } return retval;