basvandijk / concurrent-extra

Extra concurrency primitives
Other
17 stars 5 forks source link

RLock and asynchronous exceptions #20

Open pepeiborra opened 3 years ago

pepeiborra commented 3 years ago

I believe that RLock needs uninterruptible masking around the outer MVar. Otherwise, since takeMVar is interruptible, it may happen that release gets interrupted after taking the outer lock but before the inner lock is released.