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:
86d8885
)
Make static data thread safe in pango-engine.c
author
Alessandro Pignotti
<a.pignotti@sssup.it>
Wed, 25 May 2011 13:47:19 +0000
(15:47 +0200)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 28 Aug 2012 02:59:42 +0000
(22:59 -0400)
pango/pango-engine.c
patch
|
blob
|
history
diff --git
a/pango/pango-engine.c
b/pango/pango-engine.c
index
8e87402
..
eb75dd0
100644
(file)
--- a/
pango/pango-engine.c
+++ b/
pango/pango-engine.c
@@
-198,8
+198,8
@@
PangoEngineShape *
_pango_get_fallback_shaper (void)
{
static PangoEngineShape *fallback_shaper = NULL;
- if (
!fallback_shaper
)
-
fallback_shaper = g_object_new (pango_fallback_engine_get_type (), NULL
);
+ if (
g_once_init_enter ((gsize*)&fallback_shaper)
)
+
g_once_init_leave((gsize*)&fallback_shaper, (gsize)g_object_new (pango_fallback_engine_get_type (), NULL)
);
return fallback_shaper;
}