SDL/src/thread/generic
Sam Lantinga 6215039632 Fixed bug #570
SDL_SemWaitTimeout in src/thread/generic/SDL_syssem.c line 179 (SVN trunk):

--sem->count;

should be

if (retval == 0) {
    --sem->count;
}

Without this, sem->count will underflow on timeout effectively breaking the
semaphore. It appears that the implementation has been wrong since the initial
revision.
2009-09-21 07:35:06 +00:00
..
SDL_syscond.c Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_sysmutex_c.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_sysmutex.c Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_syssem.c Fixed bug #570 2009-09-21 07:35:06 +00:00
SDL_systhread_c.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_systhread.c Updated copyright date 2008-12-08 00:27:32 +00:00