Would it be possible to implement an operation to lock an MVar without
any extra expense?  So that the thread owning the MVar can do things to
it, but no other thread can.  If it is possible, I suggest that it be
added and it would solve Marcin's problem (isEmptyMVar would then suffice).

Reply via email to