Atomic compare and swap for IORefs and STRefs.
Documentation
atomicModifyIORefCAS :: IORef a -> (a -> (a, b)) -> IO bSource
atomicModifyIORefCAS_ :: IORef a -> (a -> a) -> IO ()Source
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.