From: Jim Paris <jim_jtan_com>
authorRyan C. Gordon
Wed, 17 Aug 2005 00:19:45 +0000
changeset 111795b261f445b1
parent 1116 080ed9ef0609
child 1118 65f4b2dd46b7
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
src/timer/SDL_timer.c
     1.1 --- a/src/timer/SDL_timer.c	Tue Aug 16 09:57:16 2005 +0000
     1.2 +++ b/src/timer/SDL_timer.c	Wed Aug 17 00:19:45 2005 +0000
     1.3 @@ -287,7 +287,7 @@
     1.4  		}
     1.5  	}
     1.6  	if ( SDL_timer_threaded ) {
     1.7 -		SDL_mutexP(SDL_timer_mutex);
     1.8 +		SDL_mutexV(SDL_timer_mutex);
     1.9  	}
    1.10  
    1.11  	return retval;