Merge branch 'wip/smcv/atomic-pointer-exchange-docs' into 'main'

Correct documentation of g_atomic_pointer_exchange

See merge request GNOME/glib!2770
This commit is contained in:
Philip Withnall 2022-06-23 09:58:23 +00:00
commit ea7be5b249

View File

@ -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
**/