Files
SDL/src/thread/generic
Sam Lantinga 61770dff5b 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.

--HG--
branch : SDL-1.2
2009-09-21 07:32:26 +00:00
..
2008-12-08 00:25:42 +00:00
2008-12-08 00:25:42 +00:00
2008-12-08 00:25:42 +00:00
2009-09-21 07:32:26 +00:00
2008-12-08 00:25:42 +00:00
2008-12-08 00:25:42 +00:00