]> git.sesse.net Git - vlc/blobdiff - src/misc/objects.c
vlc_threadobj(): returns the object nesting the current thread
[vlc] / src / misc / objects.c
index 4a16e1bc2903ba3b20e02b6b5b0fe1ce51e90caf..1b84e311cbfbba27fb2a6d140020e676c31b8e93 100644 (file)
@@ -85,7 +85,8 @@ static void vlc_object_detach_unlocked (vlc_object_t *p_this);
 /*****************************************************************************
  * Local structure lock
  *****************************************************************************/
-static vlc_mutex_t    structure_lock;
+static vlc_mutex_t     structure_lock;
+static vlc_threadvar_t thread_object;
 
 void *vlc_custom_create( vlc_object_t *p_this, size_t i_size,
                          int i_type, const char *psz_type )