atomic-primops-vector-0.1.0.0: Atomic operations on Data.Vector types

Safe HaskellNone
LanguageHaskell2010

Data.Atomics.Vector

Synopsis

Documentation

casVectorElem :: IOVector a -> Int -> Ticket a -> a -> IO (Bool, Ticket a) Source

Perform a compare-and-swap on a single element of a mutable vector.

unsafeCasVectorElem :: IOVector a -> Int -> Ticket a -> a -> IO (Bool, Ticket a) Source

Unsafe version of casVectorElem which is not bounds checked.