On Mon, Nov 3, 2008 at 6:29 AM, Philip K.F. Hölzenspies
<[EMAIL PROTECTED]> wrote:
>
> I have now implemented my variable as a pair of MVars, one of which serves as
> a lock on the other. Both for performance reasons and for deadlock analysis,
> I would really like an atomic read on MVars, though. Does it exist? If not,
> why not?

Have you considered using STM? All the operations on TMVars are atomic.

-- 
Dave Menendez <[EMAIL PROTECTED]>
<http://www.eyrie.org/~zednenem/>
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to