projects
/
platform
/
upstream
/
pango.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
816c5ab
)
Make static data thread safe in pangocairo-fcfont.c
author
Alessandro Pignotti
<a.pignotti@sssup.it>
Wed, 25 May 2011 13:54:01 +0000
(15:54 +0200)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 28 Aug 2012 02:59:47 +0000
(22:59 -0400)
pango/pangocairo-fcfont.c
patch
|
blob
|
history
diff --git
a/pango/pangocairo-fcfont.c
b/pango/pangocairo-fcfont.c
index
1393ce8
..
6e4fcd9
100644
(file)
--- a/
pango/pangocairo-fcfont.c
+++ b/
pango/pangocairo-fcfont.c
@@
-187,8
+187,8
@@
get_gravity_class (void)
{
static GEnumClass *class = NULL;
- if (
G_UNLIKELY (!
class))
-
class = g_type_class_ref (PANGO_TYPE_GRAVITY
);
+ if (
g_once_init_enter ((gsize*)&
class))
+
g_once_init_leave((gsize*)&class, (gsize)g_type_class_ref (PANGO_TYPE_GRAVITY)
);
return class;
}