__atomic_add_unless(9)

__atomic_add_unless9

Add unless the number is already a given value

Usage

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.

Overview

Atomically adds a to v, so long as v was not already u. Returns the old value of v.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.