X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fthreads.c;h=63684ba7ae05a43aba988e81c034214d4b2a7cee;hb=a9934068b6060984acf70014ccc880fff32011a7;hp=a7a9b58013125f87d51b1034568f052133a0df23;hpb=7837c127aa56466e9a40e4e88bd889092662e6b9;p=vlc 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 ); } /*****************************************************************************