exchange_and_add


Description:

[ Version ( deprecated_since = "2.30" , replacement = "add" ) ]
[ CCode ( cname = "g_atomic_int_exchange_and_add" ) ]
public uint exchange_and_add (ref uint atomic, uint val)

Warning: exchange_and_add is deprecated since 2.30. Use 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.AtomicUint
Package: glib-2.0