vlc_timer_gettime: fix corner-case dead lock
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 3 Aug 2009 16:35:37 +0000 (19:35 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 3 Aug 2009 16:35:37 +0000 (19:35 +0300)
commit1b9c3f12c850b65dc33d7d33bcaadcfdd128e84b
treedebadb16094d11bb495b91681b355a6f007f6431
parent4428a70078bb99e670a6a994bce4d21ea412353c
vlc_timer_gettime: fix corner-case dead lock

If vlc_cancel() while the timer thread is between mwait() and
vlc_mutex_lock(), a dead lock would occur at vlc_join(). We need to
release the timer lock first.
src/misc/pthread.c