atomic_add

Name

atomic_add --  add integer to atomic variable

Synopsis

void atomic_add (int i, atomic_t * v);

Arguments

i

integer value to add

v

pointer of type atomic_t

Description

Atomically adds i to v. Note that the guaranteed useful range of an atomic_t is only 24 bits.