Function
GLibbit_lock_and_get
unstable since: 2.86
Declaration [src]
void
g_bit_lock_and_get (
gint* address,
guint lock_bit,
gint* out_val
)
Description [src]
Sets the indicated lock_bit
in address
and atomically returns the new value.
This is like g_bit_lock()
, except it can atomically return the new value at
address
(right after obtaining the lock). Thus the value returned in out_val
always has the lock_bit
set.
Available since: 2.86