mirror of
https://github.com/yawut/SDL.git
synced 2026-06-13 20:20:38 -05:00
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.
|
||
|---|---|---|
| .. | ||
| SDL_syscond.c | ||
| SDL_sysmutex_c.h | ||
| SDL_sysmutex.c | ||
| SDL_syssem.c | ||
| SDL_systhread_c.h | ||
| SDL_systhread.c | ||