Hello Peter, Friday, February 13, 2009, 2:17:52 AM, you wrote:
> If so, how would it be possible to make sure that the operation of > reading the current time and writing the pair to the MVar is an > "atomic" operation, in the sense that no thread switch can happen > between the two? Would this require STM? it may be better to change architecture so that you no more need atomic operations - these are "unnatural" for mvar/chan approach -- Best regards, Bulat mailto:bulat.zigans...@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe