Atomically read an Int element from the array
Modulemassiv-1.0.5.0Haskell2010
Data.Massiv.Array.Mutable.Atomic
- 10 values
- Packagemassiv-1.0.5.0
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceAtomic.hs
Atomic element-wise mutation
10 declarationsAtomically modify an Int element of the array. Returns the old value, unless the supplied index was out of bounds.
Atomically add to an Int element in the array. Returns the old value.
Atomically subtract from an Int element in the array. Returns the old value.
Atomically AND an Int element in the array. Returns the old value.
Atomically NAND an Int element in the array. Returns the old value.
Atomically OR an Int element in the array. Returns the old value.
Atomically XOR an Int element in the array. Returns the old value.
value
casIntArray Atomically CAS (Compare-and-Swap) an Int in the array. Returns the old value.