Learn R Programming

Rdsm (version 1.0.0)

fa: fa

Description

Fetch-and-add function.

Usage

fa(fav,inc)

Arguments

fav
Fetch-and-add variable (integer vector of length 1), quoted.
inc
Increment value.

Details

When a client calls fa on fav, the quantity inc (which could be negative) will be added to fa, atomically.

See Also

barr, wait, signal