[Haskell-cafe] Atomically modify two MVars

Michael Walker mike at barrucadu.co.uk
Thu Nov 10 12:36:33 UTC 2016


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 <hon.lianhung at gmail.com> 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)


More information about the Haskell-Cafe mailing list