[gst-devel] Possible race-condition when using g_enum_register_static
slomo at circular-chaos.org
Sat Oct 20 16:09:11 CEST 2007
Am Samstag, den 20.10.2007, 11:55 +0100 schrieb Tim Müller:
> On Thu, 2007-10-18 at 12:56 +0200, Sebastian Dröge wrote:
> > Another problem is, that GOnce is GLib 2.14 stuff and thus can't be used
> > unless we update the requirements to that version which wasn't done in
> > the past already because of backward compatibility reasons.
> The new g_once_init_enter() is GLib-2.14 stuff, but GOnce/g_once() have
> been around since GLib-2.4, so no problem there.
IIRC g_once_init_enter() has the big advantage, that no locking is
involved in the normal case, i.e. the variable is already assigned while
with GOnce there is...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
More information about the gstreamer-devel