Commit 4f407b68 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove dead code (vlc_object_timedwait)

parent eaddfc0b
...@@ -137,10 +137,6 @@ VLC_EXPORT( void, __vlc_object_wait, ( vlc_object_t * ) ); ...@@ -137,10 +137,6 @@ VLC_EXPORT( void, __vlc_object_wait, ( vlc_object_t * ) );
#define vlc_object_wait( obj ) \ #define vlc_object_wait( obj ) \
__vlc_object_wait( VLC_OBJECT( obj ) ) __vlc_object_wait( VLC_OBJECT( obj ) )
VLC_EXPORT( int, __vlc_object_timedwait, ( vlc_object_t *, mtime_t ) );
#define vlc_object_timedwait( obj, d ) \
__vlc_object_timedwait( VLC_OBJECT( obj ), check_deadline(d) )
VLC_EXPORT( void, __vlc_object_signal_unlocked, ( vlc_object_t * ) ); VLC_EXPORT( void, __vlc_object_signal_unlocked, ( vlc_object_t * ) );
#define vlc_object_signal_unlocked( obj ) \ #define vlc_object_signal_unlocked( obj ) \
__vlc_object_signal_unlocked( VLC_OBJECT( obj ) ) __vlc_object_signal_unlocked( VLC_OBJECT( obj ) )
......
...@@ -482,7 +482,6 @@ __vlc_object_lock ...@@ -482,7 +482,6 @@ __vlc_object_lock
__vlc_object_release __vlc_object_release
__vlc_object_set_destructor __vlc_object_set_destructor
__vlc_object_signal_unlocked __vlc_object_signal_unlocked
__vlc_object_timedwait
__vlc_object_unlock __vlc_object_unlock
__vlc_object_wait __vlc_object_wait
__vlc_object_waitpipe __vlc_object_waitpipe
......
...@@ -481,22 +481,6 @@ void __vlc_object_wait( vlc_object_t *obj ) ...@@ -481,22 +481,6 @@ void __vlc_object_wait( vlc_object_t *obj )
} }
/**
* Same as vlc_object_wait(), with an additional time-out.
*
* @param deadline <b>absolute</b> time-out (using the same clock as mdate())
*
* @return 0 if the object was signaled before the timer expiration, or
* ETIMEDOUT if the timer expired without any signal.
*/
int __vlc_object_timedwait( vlc_object_t *obj, mtime_t deadline )
{
vlc_object_internals_t *priv = vlc_internals( obj );
vlc_assert_locked( &priv->lock);
return vlc_cond_timedwait( &priv->wait, &priv->lock, deadline );
}
/** /**
* Wakes up one thread waiting on the object. If no thread are (yet) waiting, * Wakes up one thread waiting on the object. If no thread are (yet) waiting,
* nothing happens. * nothing happens.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment