From: RĂ©mi Denis-Courmont Date: Thu, 15 Feb 2007 16:33:47 +0000 (+0000) Subject: vlc_object_die() opaque wrapper to set b_die, so we can use another X-Git-Tag: 0.9.0-test0~8578 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=690aa907649d409f2e5738571f1dbe3e98f792d4;p=vlc 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. --- diff --git a/include/vlc_objects.h b/include/vlc_objects.h index 36df664f8a..3230ffd7fb 100644 --- a/include/vlc_objects.h +++ b/include/vlc_objects.h @@ -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 ) ); diff --git a/src/misc/objects.c b/src/misc/objects.c index 73ea005e13..49b784e1d6 100644 --- a/src/misc/objects.c +++ b/src/misc/objects.c @@ -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 *