test/COPYING
author Sam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 07:32:26 +0000
branchSDL-1.2
changeset 4209 62e86ab81e3c
parent 252 e8157fcb3114
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 The test programs in this directory tree are for demonstrating and
     3 testing the functionality of the SDL library, and are placed in the
     4 public domain.
     5 
     6 October 28, 1997
     7 --
     8 	Sam Lantinga				(slouken@libsdl.org)