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).
- tryTakeMVar :: MVar a -> IO (Maybe a) Marcin 'Qrczak' Kowalczyk
- RE: tryTakeMVar :: MVar a -> IO (Maybe a... Sigbjorn Finne
- Re: tryTakeMVar :: MVar a -> IO (Maybe a... Marcin 'Qrczak' Kowalczyk
- Re: tryTakeMVar :: MVar a -> IO (Maybe a... Marcin 'Qrczak' Kowalczyk
- Re: tryTakeMVar :: MVar a -> IO (May... George Russell
- Re: tryTakeMVar :: MVar a -> IO (Maybe a... Marcin 'Qrczak' Kowalczyk
- Re: tryTakeMVar :: MVar a -> IO (May... George Russell
- RE: tryTakeMVar :: MVar a -> IO (Maybe a... Simon Peyton-Jones
- RE: tryTakeMVar :: MVar a -> IO (Maybe a... Simon Marlow
- Re: tryTakeMVar :: MVar a -> IO (May... George Russell
- RE: tryTakeMVar :: MVar a -> IO (Maybe a... Simon Marlow