[pango] Update docs to reflect per-thread default fontmap
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Update docs to reflect per-thread default fontmap
- Date: Fri, 4 Jan 2013 02:06:36 +0000 (UTC)
commit 1037c5dcb51cd0865360533da7e97638dda35f7f
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Jan 3 20:06:23 2013 -0600
Update docs to reflect per-thread default fontmap
pango/pangocairo-fontmap.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index 461de9f..946ef41 100644
--- a/pango/pangocairo-fontmap.c
+++ b/pango/pangocairo-fontmap.c
@@ -135,8 +135,12 @@ static GPrivate default_font_map = G_PRIVATE_INIT (g_object_unref); /* MT-safe *
* change the Cairo font backend that the default fontmap
* uses for example.
*
- * Return value: (transfer none): the default Cairo fontmap
- * for Pango. This object is owned by Pango and must not be freed.
+ * Note that since Pango 1.32.6, the default fontmap is per-thread.
+ * Each thread gets its own default fontmap. In this way,
+ * PangoCairo can be used safely from multiple threads.
+ *
+ * Return value: (transfer none): the default PangoCairo fontmap
+ * for the current thread. This object is owned by Pango and must not be freed.
*
* Since: 1.10
**/
@@ -164,6 +168,12 @@ pango_cairo_font_map_get_default (void)
* default fontmap uses for example. The old default font map
* is unreffed and the new font map referenced.
*
+ * Note that since Pango 1.32.6, the default fontmap is per-thread.
+ * This function only changes the default fontmap for
+ * the current thread. Default fontmaps of exisiting threads
+ * are not changed. Default fontmaps of any new threads will
+ * still be created using pango_cairo_font_map_new().
+ *
* A value of %NULL for @fontmap will cause the current default
* font map to be released and a new default font
* map to be created on demand, using pango_cairo_font_map_new().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]