Atomic.intAdd

Atomically adds val to the integer pointed to by atomic. Also acts as a memory barrier. Since 2.4

class Atomic
static
void
intAdd
(
int* atomic
,
int val
)

Parameters

atomic int*

a pointer to an integer

val int

the value to add to *atomic

Meta