return p_root;
}
+#ifndef NDEBUG
/**
* Object running the current thread
*/
{
return vlc_threadvar_get (&thread_object_key);
}
+#endif
vlc_threadvar_t msg_context_global_key;
}
/* We should be safe now. Do all the initialization stuff we want. */
+#ifndef NDEBUG
vlc_threadvar_create( &thread_object_key, NULL );
+#endif
vlc_threadvar_create( &msg_context_global_key, msg_StackDestroy );
}
i_initializations++;
{
vlc_object_release( p_root );
vlc_threadvar_delete( &msg_context_global_key );
+#ifndef NDEBUG
vlc_threadvar_delete( &thread_object_key );
+#endif
}
i_initializations--;
void *(*func) (void *) = ((struct vlc_thread_boot *)data)->entry;
free (data);
+#ifdef NDEBUG
vlc_threadvar_set (&thread_object_key, obj);
+#endif
msg_Dbg (obj, "thread started");
func (obj);
msg_Dbg (obj, "thread ended");