Rechercher une page de manuel
atomic_add_unless
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
atomic_add_unless - add unless the number is already a given valueSYNOPSIS
- int atomic_add_unless(atomic_t * v, int a, int u);
ARGUMENTS
v
- pointer of type atomic_t
a
- the amount to add to v...
u
- ...unless v is equal to u.
DESCRIPTION
Atomically adds a to v, so long as v was not already u. Returns non-zero if v was not u, and zero otherwise.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre