Atomically modify two MVars

Dear cafe, Is it possible to atomically modify two MVars? (I know it can be done with TVars) Regards, Hon

No, unless you have a third MVar to control access to the first two
(which doesn't really scale, and is the entire point of STM!)
On 10 November 2016 at 12:34, Lian Hung Hon
Dear cafe,
Is it possible to atomically modify two MVars? (I know it can be done with TVars)
Regards, Hon
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Michael Walker (http://www.barrucadu.co.uk)

I see. Thanks Michael!
On 10 November 2016 at 20:36, Michael Walker
No, unless you have a third MVar to control access to the first two (which doesn't really scale, and is the entire point of STM!)
On 10 November 2016 at 12:34, Lian Hung Hon
wrote: Dear cafe,
Is it possible to atomically modify two MVars? (I know it can be done with TVars)
Regards, Hon
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Michael Walker (http://www.barrucadu.co.uk)
participants (3)
-
amindfv@gmail.com
-
Lian Hung Hon
-
Michael Walker