atomicIntExchangeAndAdd

fnint atomicIntExchangeAndAdd(ref int atomic, int val)

This function existed before glib.global.atomicIntAdd returned the prior value of the integer (which it now does). It is retained only for compatibility reasons. Don't use this function in new code.

Parameters

atomica pointer to a #gint
valthe value to add

Returns

the value of atomic before the add, signed

Deprecated