Commit 690aa907 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_object_die() opaque wrapper to set b_die, so we can use another

notification mechanism later on.
They are a lot of places that would need to be changed though.
parent 477af15c
......@@ -96,6 +96,7 @@ struct vlc_object_t
*****************************************************************************/
VLC_EXPORT( void *, __vlc_object_create, ( vlc_object_t *, int ) );
VLC_EXPORT( void, __vlc_object_destroy, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_die, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_attach, ( vlc_object_t *, vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t * ) );
VLC_EXPORT( void *, __vlc_object_get, ( vlc_object_t *, int ) );
......
......@@ -435,6 +435,15 @@ void __vlc_object_destroy( vlc_object_t *p_this )
}
}
void __vlc_object_die( vlc_object_t *p_this )
{
vlc_mutex_lock( &p_this->object_lock );
p_this->b_die = VLC_TRUE;
vlc_mutex_unlock( &p_this->object_lock );
}
/**
* find an object given its ID
*
......
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