[Haskell-cafe] MVar style question
Chad Scherrer
chad.scherrer at gmail.com
Fri Jan 5 10:19:20 EST 2007
Not that I've worked through yet. I really could be using IORef for
now, but I started using MVar because I might start using multiple
threads at some point, and I'd like to get comfortable with MVars for
that time.
On 1/4/07, Mike Gunter <m at ryangunter.com> wrote:
>
> Do you need to maintain invariants that span the two? Put
> operationally, do you want different threads to be able to access a
> and b concurrently?
>
> -m
>
> "Chad Scherrer" <chad.scherrer at gmail.com> writes:
>
> > When using MVars, is there a reason to prefer using MVar (a,b) over
> > (MVar a, MVar b), or vice versa? I'm not sure if this is really a
> > question of style, or if there are practial implications I'm missing
> > one way or another. Thanks!
> > Chad Scherrer
More information about the Haskell-Cafe
mailing list