From 0ac2e89e4e5e626e3f7dcaf10928c1647e8e91e8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 17 Aug 2005 00:19:45 +0000 Subject: [PATCH] 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 --- src/timer/SDL_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index 88883ccf1..239452794 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -287,7 +287,7 @@ int SDL_SetTimer(Uint32 ms, SDL_TimerCallback callback) } } if ( SDL_timer_threaded ) { - SDL_mutexP(SDL_timer_mutex); + SDL_mutexV(SDL_timer_mutex); } return retval;