]> git.sesse.net Git - vlc/blobdiff - src/misc/objects.c
vlc_object_die() opaque wrapper to set b_die, so we can use another
[vlc] / src / misc / objects.c
index 73ea005e13e5d437c2239652fcd422472c9cde27..49b784e1d679baba78e7847814c21dbe691c6f70 100644 (file)
@@ -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
  *