Atomic.intExchangeAndAdd

Warning g_atomic_int_exchange_and_add has been deprecated since version 2.30 and should not be used in newly-written code. Use g_atomic_int_add() instead. This function existed before g_atomic_int_add() 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. Since 2.4

class Atomic
static
int
intExchangeAndAdd
(
int* atomic
,
int val
)

Parameters

atomic int*

a pointer to a gint

val int

the value to add

Return Value

Type: int

the value of atomic before the add, signed

Meta