diff options
author | Simon Howard | 2010-02-27 17:48:25 +0000 |
---|---|---|
committer | Simon Howard | 2010-02-27 17:48:25 +0000 |
commit | 1398c8aed38b0d42e7081410ae1710858d335f7e (patch) | |
tree | 7d84a1d7c47a5fd238a8a993d8940a2fff3eeb4f | |
parent | 5f2cfb50d1632b015817f442b507b36c83301332 (diff) | |
download | chocolate-doom-1398c8aed38b0d42e7081410ae1710858d335f7e.tar.gz chocolate-doom-1398c8aed38b0d42e7081410ae1710858d335f7e.tar.bz2 chocolate-doom-1398c8aed38b0d42e7081410ae1710858d335f7e.zip |
Fix race condition with condition variable freed before it is signaled.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1873
-rw-r--r-- | opl/opl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -415,9 +415,10 @@ static void DelayCallback(void *_delay_data) SDL_LockMutex(delay_data->mutex); delay_data->finished = 1; - SDL_UnlockMutex(delay_data->mutex); SDL_CondSignal(delay_data->cond); + + SDL_UnlockMutex(delay_data->mutex); } void OPL_Delay(unsigned int ms) |