
13 Feb
2009
13 Feb
'09
8:24 a.m.
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.Ziganshin@gmail.com