An aggregate of
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
- Herlihy, Shavit: The Art of Multiprocessor Programming
- Java's AtomicMarkableReference