/* Initialize mutexes */
vlc_mutex_init( &priv->ml_lock );
- vlc_mutex_init( &priv->timer_lock );
vlc_ExitInit( &priv->exit );
return p_libvlc;
vlc_object_set_name( p_libvlc, "main" );
priv->b_stats = var_InheritBool( p_libvlc, "stats" );
- priv->i_timers = 0;
- priv->pp_timers = NULL;
/*
* Initialize hotkey handling
/* Destroy mutexes */
vlc_ExitDestroy( &priv->exit );
- vlc_mutex_destroy( &priv->timer_lock );
vlc_mutex_destroy( &priv->ml_lock );
#ifndef NDEBUG /* Hack to dump leaked objects tree */
/* Messages */
int i_verbose; ///< info messages
bool b_color; ///< color messages?
-
- /* Timer stats */
bool b_stats; ///< Whether to collect stats
- vlc_mutex_t timer_lock; ///< Lock to protect timers
- counter_t **pp_timers; ///< Array of all timers
- int i_timers; ///< Number of timers
/* Singleton objects */
module_t *p_memcpy_module; ///< Fast memcpy plugin used