[ Deprecated ( since = "2.30" , replacement = "add" ) ]
public int exchange_and_add (ref int atomic, int val)
Warning: exchange_and_add is deprecated. Use GLib.AtomicInt.add.
This function existed before add returned the prior value of the integer (which it now does).
Use add instead.
It is retained only for compatibility reasons. Don't use this function in new code.
atomic |
a pointer to a int |
val |
the value to add |
the value of |