Changeset 5b63839284565821b5aff349378eddbb9d7f1ee0
- Timestamp:
- 06/09/08 15:42:27
(3 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1220708547 +0300
- git-parent:
[75fb09e956a55576ff75b8cfe708efd9f98538ec]
- git-author:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1220708547 +0300
- Message:
vlc_cond_init: really remove useless parameter
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcce79ee |
r5b63839 |
|
| 134 | 134 | VLC_EXPORT( int, vlc_mutex_init_recursive, ( vlc_mutex_t * ) ); |
|---|
| 135 | 135 | VLC_EXPORT( void, __vlc_mutex_destroy, ( const char *, int, vlc_mutex_t * ) ); |
|---|
| 136 | | VLC_EXPORT( int, __vlc_cond_init, ( vlc_cond_t * ) ); |
|---|
| | 136 | VLC_EXPORT( int, vlc_cond_init, ( vlc_cond_t * ) ); |
|---|
| 137 | 137 | VLC_EXPORT( void, __vlc_cond_destroy, ( const char *, int, vlc_cond_t * ) ); |
|---|
| 138 | 138 | VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) ) ); |
|---|
| … | … | |
| 340 | 340 | |
|---|
| 341 | 341 | /***************************************************************************** |
|---|
| 342 | | * vlc_cond_init: initialize a condition |
|---|
| 343 | | *****************************************************************************/ |
|---|
| 344 | | #define vlc_cond_init( P_THIS, P_COND ) \ |
|---|
| 345 | | __vlc_cond_init( P_COND ) |
|---|
| 346 | | |
|---|
| 347 | | /***************************************************************************** |
|---|
| 348 | 342 | * vlc_cond_signal: start a thread on condition completion |
|---|
| 349 | 343 | *****************************************************************************/ |
|---|
| r857535c |
r5b63839 |
|
| 441 | 441 | |
|---|
| 442 | 442 | vlc_mutex_init( &p_sys->lock ); |
|---|
| 443 | | vlc_cond_init( p_this, &p_sys->wait ); |
|---|
| | 443 | vlc_cond_init( &p_sys->wait ); |
|---|
| 444 | 444 | |
|---|
| 445 | 445 | /* Build directshow graph */ |
|---|
| rc86ee9a |
r5b63839 |
|
| 96 | 96 | |
|---|
| 97 | 97 | vlc_mutex_init( &p_sys->httpd_mutex ); |
|---|
| 98 | | vlc_cond_init( p_access, &p_sys->httpd_cond ); |
|---|
| | 98 | vlc_cond_init( &p_sys->httpd_cond ); |
|---|
| 99 | 99 | p_sys->b_request_frontend_info = p_sys->b_request_mmi_info = false; |
|---|
| 100 | 100 | p_sys->i_httpd_timeout = 0; |
|---|
| rbe40069 |
r5b63839 |
|
| 158 | 158 | p_sys->p_thread->p_base_object = p_this; |
|---|
| 159 | 159 | |
|---|
| 160 | | vlc_cond_init( p_sys->p_thread, &p_sys->p_thread->wait ); |
|---|
| | 160 | vlc_cond_init( &p_sys->p_thread->wait ); |
|---|
| 161 | 161 | |
|---|
| 162 | 162 | vlc_mutex_init( &p_sys->p_thread->lock ); |
|---|
| rbe40069 |
r5b63839 |
|
| 174 | 174 | } |
|---|
| 175 | 175 | |
|---|
| 176 | | vlc_cond_init( p_sys->p_thread, &p_sys->p_thread->wait ); |
|---|
| | 176 | vlc_cond_init( &p_sys->p_thread->wait ); |
|---|
| 177 | 177 | vlc_mutex_init( &p_sys->p_thread->lock ); |
|---|
| 178 | 178 | |
|---|
| rbe40069 |
r5b63839 |
|
| 317 | 317 | p_sys->b_playing = false; |
|---|
| 318 | 318 | p_sys->start_date = 0; |
|---|
| 319 | | vlc_cond_init( p_aout, &p_sys->wait ); |
|---|
| | 319 | vlc_cond_init( &p_sys->wait ); |
|---|
| 320 | 320 | vlc_mutex_init( &p_sys->lock ); |
|---|
| 321 | 321 | |
|---|
| r7f2fcb7 |
r5b63839 |
|
| 1182 | 1182 | |
|---|
| 1183 | 1183 | /* Condition because SetProperty is asynchronious */ |
|---|
| 1184 | | vlc_cond_init( p_aout, &w.cond ); |
|---|
| | 1184 | vlc_cond_init( &w.cond ); |
|---|
| 1185 | 1185 | vlc_mutex_init( &w.lock ); |
|---|
| 1186 | 1186 | vlc_mutex_lock( &w.lock ); |
|---|
| rbe40069 |
r5b63839 |
|
| 212 | 212 | pa_thread->b_error = false; |
|---|
| 213 | 213 | vlc_mutex_init( &pa_thread->lock_wait ); |
|---|
| 214 | | vlc_cond_init( p_aout, &pa_thread->wait ); |
|---|
| | 214 | vlc_cond_init( &pa_thread->wait ); |
|---|
| 215 | 215 | pa_thread->b_wait = false; |
|---|
| 216 | 216 | vlc_mutex_init( &pa_thread->lock_signal ); |
|---|
| 217 | | vlc_cond_init( p_aout, &pa_thread->signal ); |
|---|
| | 217 | vlc_cond_init( &pa_thread->signal ); |
|---|
| 218 | 218 | pa_thread->b_signal = false; |
|---|
| 219 | 219 | |
|---|
| rbe40069 |
r5b63839 |
|
| 801 | 801 | pp_contexts[i]->p_context = p_sys->p_context; |
|---|
| 802 | 802 | vlc_mutex_init( &pp_contexts[i]->lock ); |
|---|
| 803 | | vlc_cond_init( p_enc, &pp_contexts[i]->cond ); |
|---|
| | 803 | vlc_cond_init( &pp_contexts[i]->cond ); |
|---|
| 804 | 804 | pp_contexts[i]->b_work = 0; |
|---|
| 805 | 805 | pp_contexts[i]->b_done = 0; |
|---|
| r75fb09e |
r5b63839 |
|
| 183 | 183 | |
|---|
| 184 | 184 | vlc_mutex_init( &p_sys->lock ); |
|---|
| 185 | | vlc_cond_init( p_intf, &p_sys->wait ); |
|---|
| | 185 | vlc_cond_init( &p_sys->wait ); |
|---|
| 186 | 186 | |
|---|
| 187 | 187 | p_playlist = pl_Yield( p_intf ); |
|---|
| r418f6bc |
r5b63839 |
|
| 1574 | 1574 | p_sys->id_video = id; |
|---|
| 1575 | 1575 | vlc_mutex_init( &p_sys->lock_out ); |
|---|
| 1576 | | vlc_cond_init( p_stream, &p_sys->cond ); |
|---|
| | 1576 | vlc_cond_init( &p_sys->cond ); |
|---|
| 1577 | 1577 | memset( p_sys->pp_pics, 0, sizeof(p_sys->pp_pics) ); |
|---|
| 1578 | 1578 | p_sys->i_first_pic = 0; |
|---|
| r00b9584 |
r5b63839 |
|
| 19 | 19 | { |
|---|
| 20 | 20 | m_pCurrentFramePixels = NULL; |
|---|
| 21 | | vlc_cond_init( this->m_pAtmoThread, &m_WakeupCond ); |
|---|
| | 21 | vlc_cond_init( &m_WakeupCond ); |
|---|
| 22 | 22 | vlc_mutex_init( &m_WakeupLock ); |
|---|
| 23 | 23 | msg_Dbg( m_pAtmoThread, "CAtmoExternalCaptureInput created."); |
|---|
| … | … | |
| 143 | 143 | #ifdef _ATMO_KLUDGE_ |
|---|
| 144 | 144 | vlc_cond_destroy( &m_WakeupCond ); |
|---|
| 145 | | vlc_cond_init( m_pAtmoThread, &m_WakeupCond ); |
|---|
| | 145 | vlc_cond_init( &m_WakeupCond ); |
|---|
| 146 | 146 | #endif |
|---|
| 147 | 147 | #endif |
|---|
| r3561b9b |
r5b63839 |
|
| 181 | 181 | vlc_mutex_lock( &m_TerminateLock ); |
|---|
| 182 | 182 | vlc_cond_destroy( &m_TerminateCond ); |
|---|
| 183 | | vlc_cond_init( m_pAtmoThread, &m_TerminateCond ); |
|---|
| | 183 | vlc_cond_init( &m_TerminateCond ); |
|---|
| 184 | 184 | vlc_mutex_unlock( &m_TerminateLock ); |
|---|
| 185 | 185 | #endif |
|---|
| rbe40069 |
r5b63839 |
|
| 23 | 23 | |
|---|
| 24 | 24 | vlc_mutex_init( &m_TerminateLock ); |
|---|
| 25 | | err = vlc_cond_init( m_pAtmoThread, &m_TerminateCond ); |
|---|
| | 25 | err = vlc_cond_init( &m_TerminateCond ); |
|---|
| 26 | 26 | if(err) { |
|---|
| 27 | 27 | msg_Err( m_pAtmoThread, "vlc_cond_init failed %d",err); |
|---|
| rbe40069 |
r5b63839 |
|
| 184 | 184 | } |
|---|
| 185 | 185 | vlc_mutex_init( &p_thread->lock ); |
|---|
| 186 | | vlc_cond_init( p_filter, &p_thread->wait ); |
|---|
| | 186 | vlc_cond_init( &p_thread->wait ); |
|---|
| 187 | 187 | |
|---|
| 188 | 188 | p_thread->i_blocks = 0; |
|---|
| rcd133b2 |
r5b63839 |
|
| 428 | 428 | VLC_Compiler |
|---|
| 429 | 429 | __vlc_cond_destroy |
|---|
| 430 | | __vlc_cond_init |
|---|
| | 430 | vlc_cond_init |
|---|
| 431 | 431 | vlc_config_create |
|---|
| 432 | 432 | vlc_config_set |
|---|
| rebc680c |
r5b63839 |
|
| 360 | 360 | |
|---|
| 361 | 361 | vlc_mutex_init( &p_fifo->lock ); |
|---|
| 362 | | vlc_cond_init( NULL, &p_fifo->wait ); |
|---|
| | 362 | vlc_cond_init( &p_fifo->wait ); |
|---|
| 363 | 363 | p_fifo->p_first = NULL; |
|---|
| 364 | 364 | p_fifo->pp_last = &p_fifo->p_first; |
|---|
| rcd133b2 |
r5b63839 |
|
| 171 | 171 | /* Initialize mutexes and condvars */ |
|---|
| 172 | 172 | vlc_mutex_init( &p_priv->lock ); |
|---|
| 173 | | vlc_cond_init( p_new, &p_priv->wait ); |
|---|
| | 173 | vlc_cond_init( &p_priv->wait ); |
|---|
| 174 | 174 | vlc_mutex_init( &p_priv->var_lock ); |
|---|
| 175 | 175 | vlc_spin_init( &p_priv->spin ); |
|---|
| rb535e99 |
r5b63839 |
|
| 321 | 321 | |
|---|
| 322 | 322 | /***************************************************************************** |
|---|
| 323 | | * vlc_cond_init: initialize a condition |
|---|
| 324 | | *****************************************************************************/ |
|---|
| 325 | | int __vlc_cond_init( vlc_cond_t *p_condvar ) |
|---|
| | 323 | * vlc_cond_init: initialize a condition variable |
|---|
| | 324 | *****************************************************************************/ |
|---|
| | 325 | int vlc_cond_init( vlc_cond_t *p_condvar ) |
|---|
| 326 | 326 | { |
|---|
| 327 | 327 | #if defined( LIBVLC_USE_PTHREAD ) |
|---|