An aggregate of IORef
and Bool
that can be modified atomically. Comes in
handy when something slightly stronger than atomicModifyIORef
is required.
It works. Probably eligible for some optimisations.
Assuming you have GHC already installed:
$ cabal configure
$ cabal build
$ cabal install
BSD3
- Herlihy, Shavit: The Art of Multiprocessor Programming
- Java's AtomicMarkableReference