[glib] gtype: Note idempotency of g_type_init()



commit cf912785b6aa4cd7acd1cf2b041b25fae76df5f7
Author: Colin Walters <walters verbum org>
Date:   Thu Mar 15 17:59:01 2012 -0400

    gtype: Note idempotency of g_type_init()

 gobject/gtype.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index e9ed7fa..d78a897 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -4265,6 +4265,8 @@ _g_type_boxed_init (GType          type,
  *               debugging purposes.
  *
  * Similar to g_type_init(), but additionally sets debug flags.
+ *
+ * This function is idempotent.
  */
 void
 g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
@@ -4376,6 +4378,8 @@ g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
  * (such as the various fundamental type implementations or the signal
  * system).
  *
+ * This function is idempotent.
+ *
  * Since version 2.24 this also initializes the thread system
  */
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]