Skip to content

Commit

Permalink
From: Jim Paris <jim_jtan_com>
Browse files Browse the repository at this point in the history
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
  • Loading branch information
icculus committed Aug 17, 2005
1 parent 15c406c commit b05dabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timer/SDL_timer.c
Expand Up @@ -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;
Expand Down

0 comments on commit b05dabd

Please sign in to comment.