[Haskell-cafe] Re: Using tiny (atomic) mutables between multiple threads

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Sep 14 01:24:23 EDT 2009

Hello Felix,

Monday, September 14, 2009, 2:39:17 AM, you wrote:

>> i suggest you to use IORef Bool instead - as it was said once by
>> SimonM, it's safe to use in m/t environment, of course without all
>> fancy features of MVar locking

> Is it also safe for other types such as Int? And is this documented
> somewhere? If not it would be helpful to add this to the Haskell Wiki.

afair, it is safe in one-writer-many-readers setup. probably it isn't
documented, otherwise Simon hasn't been asked :)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list