Atomic.intExchangeAndAdd

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.

More...
struct 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

Detailed Description

Deprecated: Use g_atomic_int_add() instead.

Meta