[Haskell-cafe] announce: Glome.hs raytracer
Bulat Ziganshin
bulat.ziganshin at gmail.com
Thu Mar 27 05:51:01 EDT 2008
Hello Andrew,
Thursday, March 27, 2008, 12:27:47 PM, you wrote:
>> plus a b = unsafePerformIO (modifyIORef counter (+1)) `seq` a+b
> Erm... might it be better to use an MVar? (To avoid lost updates if
> there are multiple render threads.)
you are right, IORef is appropriate only for single-threaded program
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list