README-SDL.txt
author Sam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 07:32:26 +0000
branchSDL-1.2
changeset 4209 62e86ab81e3c
parent 0 74212992fb08
child 5537 8a66741be632
permissions -rw-r--r--
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.
     1 
     2 Please distribute this file with the SDL runtime environment:
     3 
     4 The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
     5 designed to make it easy to write multi-media software, such as games and
     6 emulators.
     7 
     8 The Simple DirectMedia Layer library source code is available from:
     9 http://www.libsdl.org/
    10 
    11 This library is distributed under the terms of the GNU LGPL license:
    12 http://www.gnu.org/copyleft/lesser.html
    13