summaryrefslogtreecommitdiff
path: root/pango/modules.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-27 23:43:38 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-28 00:05:19 -0400
commit4105e20d799a80f9c0c2befdef8f458ee11654a6 (patch)
treee98bb1e985584a28267af6e892471c3617053665 /pango/modules.c
parent26bbf750ab0754c113722e87942174cf2953dad4 (diff)
downloadpango-4105e20d799a80f9c0c2befdef8f458ee11654a6.tar.gz
More churn
Diffstat (limited to 'pango/modules.c')
-rw-r--r--pango/modules.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/modules.c b/pango/modules.c
index 4046d235..1fbd58de 100644
--- a/pango/modules.c
+++ b/pango/modules.c
@@ -106,7 +106,7 @@ static GType pango_module_get_type (void);
static GQuark
get_warned_quark (void)
{
- static GQuark warned_quark = 0;
+ static GQuark warned_quark = 0; /* MT-safe */
if (G_UNLIKELY (!warned_quark))
warned_quark = g_quark_from_static_string ("pango-module-warned");
@@ -382,8 +382,8 @@ script_from_string (const char *str)
{
static GEnumClass *class = NULL;
GEnumValue *value;
- if (!class)
- class = g_type_class_ref (PANGO_TYPE_SCRIPT);
+ if (g_once_init_enter (&class))
+ g_once_init_leave (&class, g_type_class_ref (PANGO_TYPE_SCRIPT));
value = g_enum_get_value_by_nick (class, str);
if (!value)
@@ -652,7 +652,7 @@ build_map (PangoMapInfo *info)
if (!dlloaded_engines && !registered_engines)
{
- static gboolean no_module_warning = FALSE;
+ static gboolean no_module_warning = FALSE; /* MT-safe */
if (!no_module_warning)
{
gchar *filename = g_build_filename (pango_get_sysconf_subdirectory (),