[Haskell-cafe] atomicity and visibility of readIORef / writeIORef
kane at kane.cx
Sun Aug 2 12:34:13 UTC 2015
"An atomicModifyIORef is never observed to take place ahead of any
earlier (in program order) IORef operations, or after any later IORef
There are atomic variants of write/modifyIORef which place an
appropriate memory barrier so that race conditions (like in the example
on the bottom of the page) can't happen.
On 8/2/2015 2:09 PM, Alexey Egorov wrote:
> Hello haskellers,
> is there any guarantees of atomicity and visibility of read-write operations on IORefs, like Java have for volatile variables?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4291 bytes
Desc: S/MIME Cryptographic Signature
More information about the Haskell-Cafe