• Sam Lantinga's avatar
    Fixed bug #570 · 6a11032c
    Sam Lantinga authored
    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
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403843
    6a11032c
Name
Last commit
Last update
..
beos Loading commit data...
dc Loading commit data...
generic Loading commit data...
irix Loading commit data...
os2 Loading commit data...
pth Loading commit data...
pthread Loading commit data...
riscos Loading commit data...
symbian Loading commit data...
win32 Loading commit data...
SDL_systhread.h Loading commit data...
SDL_thread.c Loading commit data...
SDL_thread_c.h Loading commit data...