Commit ee05d26b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Inline vlc_object_signal

parent eca5f8a1
......@@ -174,7 +174,12 @@ VLC_EXPORT( void, __vlc_object_signal_unlocked, ( vlc_object_t * ) );
#define vlc_object_signal_unlocked( obj ) \
__vlc_object_signal_unlocked( VLC_OBJECT( obj ) )
VLC_EXPORT( void, __vlc_object_signal, ( vlc_object_t * ) );
static inline void __vlc_object_signal( vlc_object_t *obj )
{
vlc_oject_lock( obj );
vlc_object_signal_unlocked( obj );
vlc_object_unlock( obj );
}
#define vlc_object_signal( obj ) \
__vlc_object_signal( VLC_OBJECT( obj ) )
......
......@@ -506,17 +506,6 @@ void __vlc_object_signal_unlocked( vlc_object_t *obj )
}
/**
* Signals an object for which the lock is NOT held.
*/
void __vlc_object_signal( vlc_object_t *obj )
{
vlc_mutex_lock( &obj->object_lock );
vlc_object_signal_unlocked( obj );
vlc_mutex_unlock( &obj->object_lock );
}
/**
* Requests termination of an object.
* If the object is LibVLC, also request to terminate all its children.
......
Supports Markdown
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