[gstreamer-bugs] [Bug 608398] Initializing the glib thread system seems not to work

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jan 29 02:51:06 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=608398
  GStreamer | gstreamer (core) | git

--- Comment #6 from Sebastian Dröge <slomo at circular-chaos.org> 2010-01-29 10:51:00 UTC ---
(In reply to comment #5)
> > Yes, I agree with Tim here.
> 
> Which part? That we shouldn't put -DG_THREADS_MANDATORY in the pkg-config
> cflags for now, or that GLib should ideally do things slightly differently? :)

That GLib should do things differently ;)

> > And we should probably just call g_thread_init() unconditionally in GLib >= 2.23.2
> > and remove that warning then because it's pointless now.
> 
> So there's no need to call g_thread_init() very early in the program any more?
> Before other GLib functions are called, etc.? As I see it, the assumption is
> sort of that g_type_init() is called first thing in main() now, more or less,
> and -DG_THREADS_MANDATORY only seems to be used in GObject, but not in GLib
> itself.

Yes, either call it always (it can be called multiple times) or assume
g_type_init() calls it

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list