VLC_EXPORT( int, vlc_mutex_init, ( vlc_mutex_t * ) );
VLC_EXPORT( int, vlc_mutex_init_recursive, ( vlc_mutex_t * ) );
VLC_EXPORT( void, __vlc_mutex_destroy, ( const char *, int, vlc_mutex_t * ) );
-VLC_EXPORT( int, __vlc_cond_init, ( vlc_cond_t * ) );
+VLC_EXPORT( int, vlc_cond_init, ( vlc_cond_t * ) );
VLC_EXPORT( void, __vlc_cond_destroy, ( const char *, int, vlc_cond_t * ) );
VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) ) );
VLC_EXPORT( void, vlc_threadvar_delete, (vlc_threadvar_t *) );
}
#define mutex_cleanup_push( lock ) vlc_cleanup_push (vlc_cleanup_lock, lock)
-/*****************************************************************************
- * vlc_cond_init: initialize a condition
- *****************************************************************************/
-#define vlc_cond_init( P_THIS, P_COND ) \
- __vlc_cond_init( P_COND )
-
/*****************************************************************************
* vlc_cond_signal: start a thread on condition completion
*****************************************************************************/
p_sys->p_control = NULL;
vlc_mutex_init( &p_sys->lock );
- vlc_cond_init( p_this, &p_sys->wait );
+ vlc_cond_init( &p_sys->wait );
/* Build directshow graph */
CreateDirectShowGraph( p_sys );
httpd_file_sys_t *f;
vlc_mutex_init( &p_sys->httpd_mutex );
- vlc_cond_init( p_access, &p_sys->httpd_cond );
+ vlc_cond_init( &p_sys->httpd_cond );
p_sys->b_request_frontend_info = p_sys->b_request_mmi_info = false;
p_sys->i_httpd_timeout = 0;
p_sys->p_thread->p_base_object = p_this;
- vlc_cond_init( p_sys->p_thread, &p_sys->p_thread->wait );
+ vlc_cond_init( &p_sys->p_thread->wait );
vlc_mutex_init( &p_sys->p_thread->lock );
p_sys->p_thread->rtmp_headers_send[i].body = NULL;
}
- vlc_cond_init( p_sys->p_thread, &p_sys->p_thread->wait );
+ vlc_cond_init( &p_sys->p_thread->wait );
vlc_mutex_init( &p_sys->p_thread->lock );
p_sys->p_thread->result_connect = 1;
return VLC_ENOMEM;
p_sys->b_playing = false;
p_sys->start_date = 0;
- vlc_cond_init( p_aout, &p_sys->wait );
+ vlc_cond_init( &p_sys->wait );
vlc_mutex_init( &p_sys->lock );
/* Get device name */
msg_Dbg( p_aout, STREAM_FORMAT_MSG( "setting stream format: ", change_format ) );
/* Condition because SetProperty is asynchronious */
- vlc_cond_init( p_aout, &w.cond );
+ vlc_cond_init( &w.cond );
vlc_mutex_init( &w.lock );
vlc_mutex_lock( &w.lock );
pa_thread->p_aout = p_aout;
pa_thread->b_error = false;
vlc_mutex_init( &pa_thread->lock_wait );
- vlc_cond_init( p_aout, &pa_thread->wait );
+ vlc_cond_init( &pa_thread->wait );
pa_thread->b_wait = false;
vlc_mutex_init( &pa_thread->lock_signal );
- vlc_cond_init( p_aout, &pa_thread->signal );
+ vlc_cond_init( &pa_thread->signal );
pa_thread->b_signal = false;
/* Create PORTAUDIOThread */
sizeof(struct thread_context_t) );
pp_contexts[i]->p_context = p_sys->p_context;
vlc_mutex_init( &pp_contexts[i]->lock );
- vlc_cond_init( p_enc, &pp_contexts[i]->cond );
+ vlc_cond_init( &pp_contexts[i]->cond );
pp_contexts[i]->b_work = 0;
pp_contexts[i]->b_done = 0;
if ( vlc_thread_create( pp_contexts[i], "encoder", FfmpegThread,
p_intf->p_sys = p_sys;
vlc_mutex_init( &p_sys->lock );
- vlc_cond_init( p_intf, &p_sys->wait );
+ vlc_cond_init( &p_sys->wait );
p_playlist = pl_Yield( p_intf );
PL_LOCK;
VLC_THREAD_PRIORITY_VIDEO;
p_sys->id_video = id;
vlc_mutex_init( &p_sys->lock_out );
- vlc_cond_init( p_stream, &p_sys->cond );
+ vlc_cond_init( &p_sys->cond );
memset( p_sys->pp_pics, 0, sizeof(p_sys->pp_pics) );
p_sys->i_first_pic = 0;
p_sys->i_last_pic = 0;
CThread(pAtmoDynData->getAtmoFilter())
{
m_pCurrentFramePixels = NULL;
- vlc_cond_init( this->m_pAtmoThread, &m_WakeupCond );
+ vlc_cond_init( &m_WakeupCond );
vlc_mutex_init( &m_WakeupLock );
msg_Dbg( m_pAtmoThread, "CAtmoExternalCaptureInput created.");
*/
#ifdef _ATMO_KLUDGE_
vlc_cond_destroy( &m_WakeupCond );
- vlc_cond_init( m_pAtmoThread, &m_WakeupCond );
+ vlc_cond_init( &m_WakeupCond );
#endif
#endif
}
#ifdef _ATMO_KLUDGE_
vlc_mutex_lock( &m_TerminateLock );
vlc_cond_destroy( &m_TerminateCond );
- vlc_cond_init( m_pAtmoThread, &m_TerminateCond );
+ vlc_cond_init( &m_TerminateCond );
vlc_mutex_unlock( &m_TerminateLock );
#endif
#endif
vlc_object_attach( m_pAtmoThread, m_pOwner);
vlc_mutex_init( &m_TerminateLock );
- err = vlc_cond_init( m_pAtmoThread, &m_TerminateCond );
+ err = vlc_cond_init( &m_TerminateCond );
if(err) {
msg_Err( m_pAtmoThread, "vlc_cond_init failed %d",err);
}
return VLC_EGENERIC;
}
vlc_mutex_init( &p_thread->lock );
- vlc_cond_init( p_filter, &p_thread->wait );
+ vlc_cond_init( &p_thread->wait );
p_thread->i_blocks = 0;
aout_DateInit( &p_thread->date, p_filter->output.i_rate );
VLC_CompileHost
VLC_Compiler
__vlc_cond_destroy
-__vlc_cond_init
+vlc_cond_init
vlc_config_create
vlc_config_set
vlc_control_cancel
return NULL;
vlc_mutex_init( &p_fifo->lock );
- vlc_cond_init( NULL, &p_fifo->wait );
+ vlc_cond_init( &p_fifo->wait );
p_fifo->p_first = NULL;
p_fifo->pp_last = &p_fifo->p_first;
p_fifo->i_depth = p_fifo->i_size = 0;
/* Initialize mutexes and condvars */
vlc_mutex_init( &p_priv->lock );
- vlc_cond_init( p_new, &p_priv->wait );
+ vlc_cond_init( &p_priv->wait );
vlc_mutex_init( &p_priv->var_lock );
vlc_spin_init( &p_priv->spin );
p_priv->pipes[0] = p_priv->pipes[1] = -1;
}
/*****************************************************************************
- * vlc_cond_init: initialize a condition
+ * vlc_cond_init: initialize a condition variable
*****************************************************************************/
-int __vlc_cond_init( vlc_cond_t *p_condvar )
+int vlc_cond_init( vlc_cond_t *p_condvar )
{
#if defined( LIBVLC_USE_PTHREAD )
pthread_condattr_t attr;