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.
slouken@0
     1
slouken@0
     2
The test programs in this directory tree are for demonstrating and
slouken@0
     3
testing the functionality of the SDL library, and are placed in the
slouken@0
     4
public domain.
slouken@0
     5
slouken@0
     6
October 28, 1997
slouken@0
     7
--
slouken@252
     8
	Sam Lantinga				(slouken@libsdl.org)