From 442ef9d902a3b001cbd32cbbebe4202d26b634a9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 18 Apr 2006 18:36:44 +0000 Subject: [PATCH] Say that ref/unref are thread-safe now. (#322883, Christophe Fergeau) 2006-04-18 Matthias Clasen * gobject/tut_gobject.xml: Say that ref/unref are thread-safe now. (#322883, Christophe Fergeau) --- docs/reference/ChangeLog | 5 +++++ docs/reference/gobject/tut_gobject.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 6f74acb4f..e825507b7 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2006-04-18 Matthias Clasen + + * gobject/tut_gobject.xml: Say that ref/unref are thread-safe now. + (#322883, Christophe Fergeau) + 2006-04-05 Matthias Clasen * gobject/tmpl/signals.sgml: Document class_offset 0. diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml index e790251b9..d928595ba 100644 --- a/docs/reference/gobject/tut_gobject.xml +++ b/docs/reference/gobject/tut_gobject.xml @@ -323,7 +323,7 @@ void g_object_run_dispose (GObject *object); The functions g_object_ref/g_object_unref respectively - increase and decrease the reference count. None of these function is thread-safe. + increase and decrease the reference count.These functions are thread-safe as of GLib 2.8. The reference count is, unsurprisingly, initialized to one by g_object_new which means that the caller is currenly the sole owner of the newly-created reference.