Win32: assert against recursive mutex in vlc_cond_(timed)wait
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 18:55:12 +0000 (21:55 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 18:55:12 +0000 (21:55 +0300)
src/misc/threads.c

index 795d978..125e3d1 100644 (file)
@@ -527,6 +527,8 @@ void vlc_cond_wait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex)
 
 #elif defined( WIN32 )
     DWORD result;
+
+    assert (!p_mutex->recursive);
     do
     {
         vlc_testcancel ();
@@ -566,6 +568,7 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
 #elif defined( WIN32 )
     DWORD result;
 
+    assert (!p_mutex->recursive);
     do
     {
         vlc_testcancel ();