src: os2: fix locking at quit
commitb8242eeb84ac626d58c55a66288e79da6dffdd08
authorKO Myung-Hun <komh78@gmail.com>
Sat, 3 Oct 2015 12:15:18 +0000 (3 21:15 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 6 Oct 2015 10:21:12 +0000 (6 12:21 +0200)
tree325656c74b449d3b574fb685df430efa8338e88f
parent2febabcd0aa74cf812a747d68ef93a41c6386bc6
src: os2: fix locking at quit

Sometimes, especially at quit, vlc_cond_(timed)wait() may be called
very frequently. And this may exceed the limit the post count of
OS/2 event semaphore. As a result, waiting thread numbers cannot be
calculated properly.

To avoid this, increase/decrease waiting thread numbers in
vlc_cond_wait_common() instead of separating it into vlc_cond_signal()
and vlc_cond_wait_common().

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/os2/thread.c