Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Atomics.Vector
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.