Use g_once when registering enumeration types
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 29 May 2009 11:40:23 +0000 (12:40 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 29 May 2009 11:40:23 +0000 (12:40 +0100)
commitb4861cbd21210b99294b93ea18bbfb4724a0aca6
tree6ca70e55be2804d2834a9995d0a3a8e067312ed8
parent3248bb1b755ae23cfb1a2eabd7a72b803faa5a31
Use g_once when registering enumeration types

Just like we do with GObject types and G_DEFINE_TYPE, we should
use the g_once_init_enter/g_once_init_leave mechanism to make the
GType registration of enumeration types thread safe.
clutter/clutter-enum-types.c.in
clutter/cogl/common/cogl-enum-types.c.in