[gnio] Clean up docs wrt init() idempotence



commit 6eec1c81ce7898a4ac4125d30062cbd0ba91daa7
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 6 23:11:48 2009 +0200

    Clean up docs wrt init() idempotence
    
    Clarify that idempotence is with all argument the same, i.e. we could
    return different result based on whether cancellable is NULL or not.
---
 gio/ginitable.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gio/ginitable.c b/gio/ginitable.c
index 36ee963..b82f071 100644
--- a/gio/ginitable.c
+++ b/gio/ginitable.c
@@ -109,10 +109,10 @@ g_initable_base_init (gpointer g_class)
  * error %G_IO_ERROR_NOT_INITIALIZED.
  *
  * Implementations of this method must be idempotent, i.e. multiple calls
- * to this function should return the same results. Only the first call
- * initializes the object, further calls return the result of the first
- * call. This is so that its safe to implement the singleton pattern in
- * the GObject constructor function.
+ * to this function with the same argument should return the same results.
+ * Only the first call initializes the object, further calls return the result
+ * of the first call. This is so that its safe to implement the singleton
+ * pattern in the GObject constructor function.
  *
  * Returns: %TRUE if successful. If an error
  *     has occurred, this function will return %FALSE and set @error



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