From a9934068b6060984acf70014ccc880fff32011a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 16 Sep 2007 11:08:27 +0000 Subject: [PATCH] Use new API --- src/misc/threads.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/misc/threads.c b/src/misc/threads.c index a7a9b58013..63684ba7ae 100644 --- a/src/misc/threads.c +++ b/src/misc/threads.c @@ -684,7 +684,7 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line if( b_wait ) { msg_Dbg( p_this, "waiting for thread completion" ); - vlc_cond_wait( &p_this->object_wait, &p_this->object_lock ); + vlc_object_wait( p_this ); } p_priv->b_thread = VLC_TRUE; @@ -773,9 +773,7 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file, *****************************************************************************/ void __vlc_thread_ready( vlc_object_t *p_this ) { - vlc_mutex_lock( &p_this->object_lock ); - vlc_cond_signal( &p_this->object_wait ); - vlc_mutex_unlock( &p_this->object_lock ); + vlc_object_signal( p_this ); } /***************************************************************************** -- 2.39.2