[glib/wip/smcv/atomic-pointer-exchange-docs] Correct documentation of g_atomic_pointer_exchange




commit 69f7b03c38772daba0d467968fcd1754860ba8cf
Author: Simon McVittie <smcv collabora com>
Date:   Thu Jun 23 09:15:43 2022 +0100

    Correct documentation of g_atomic_pointer_exchange
    
    The references to gint and guint were copy/pasted from
    g_atomic_int_exchange(), but what we want here is a gpointer, gintptr
    or guintptr like the rest of the g_atomic_pointer_ family.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 glib/gatomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gatomic.c b/glib/gatomic.c
index 4771d449de..1ab4fde91c 100644
--- a/glib/gatomic.c
+++ b/glib/gatomic.c
@@ -432,7 +432,7 @@ gboolean
 
 /**
  * g_atomic_pointer_exchange:
- * @atomic: a pointer to a #gint or #guint
+ * @atomic: a pointer to a #gpointer-sized value
  * @newval: the value to replace with
  *
  * Sets the @atomic to @newval and returns the old value from @atomic.
@@ -444,7 +444,7 @@ gboolean
  *
  * This call acts as a full compiler and hardware memory barrier.
  *
- * Returns: the value of @atomic before the exchange, signed
+ * Returns: the value of @atomic before the exchange
  *
  * Since: 2.74
  **/


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