atomic_dec_and_test
Name
atomic_dec_and_test -- decrement and test
Synopsis
int atomic_dec_and_test
(atomic_t * v);
Arguments
v
pointer of type atomic_t
Description
Atomically decrements v
by 1 and
returns true if the result is 0, or false for all other
cases. Note that the guaranteed
useful range of an atomic_t is only 24 bits.