bitlock: improve doctext for g_pointer_bit_unlock_and_set()

This commit is contained in:
Thomas Haller 2025-04-07 16:51:14 +02:00
parent 0a7eb121fc
commit 7edc1353bd

View File

@ -653,8 +653,8 @@ g_pointer_bit_lock_mask_ptr (gpointer ptr, guint lock_bit, gboolean set, guintpt
* @ptr: the new pointer value to set * @ptr: the new pointer value to set
* @preserve_mask: if non-zero, those bits of the current pointer in @address * @preserve_mask: if non-zero, those bits of the current pointer in @address
* are preserved. * are preserved.
* Note that the @lock_bit bit will be always set according to @set, * Note that the @lock_bit bit will be always unset regardless of
* regardless of @preserve_mask and the currently set value in @address. * @ptr, @preserve_mask and the currently set value in @address.
* *
* This is equivalent to g_pointer_bit_unlock() and atomically setting * This is equivalent to g_pointer_bit_unlock() and atomically setting
* the pointer value. * the pointer value.