Data.CAS
Description
Atomic compare and swap for IORefs and STRefs.
Documentation
atomicModifyIORefCAS :: IORef a -> (a -> (a, b)) -> IO bSource
atomicModifyIORefCAS_ :: IORef a -> (a -> a) -> IO ()Source
IORefCAS-0.2: Atomic compare and swap for IORefs and STRefs.
Data.CAS
Description
Atomic compare and swap for IORefs and STRefs.
atomicModifyIORefCAS :: IORef a -> (a -> (a, b)) -> IO bSource
atomicModifyIORefCAS_ :: IORef a -> (a -> a) -> IO ()Source
Fake
and Foreign
alternative libraries.