exchange_and_add


Description:

[ 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).

Note:

Use add instead.

It is retained only for compatibility reasons. Don't use this function in new code.

Parameters:

atomic

a pointer to a int

val

the value to add

Returns:

the value of atomic before the add, signed


Namespace: GLib.AtomicInt
Package: glib-2.0