Atomic.intDecAndTest

Atomically decrements the integer pointed to by atomic by 1. Since 2.4

class Atomic
static
int
intDecAndTest
(
int* atomic
)

Parameters

atomic int*

a pointer to an integer

Return Value

Type: int

TRUE if the integer pointed to by atomic is 0 after decrementing it

Meta