|
RE: Bug in emptySampleVar: msg#00023lang.haskell.glasgow.bugs
> Hello! > In my opinion there is a bug in the emptySampleVar-function in > Control.Concurrent.SampleVar. > > emptySampleVar :: SampleVar a -> IO () > emptySampleVar v = do > (readers, var) <- takeMVar v > if readers >= 0 then > takeMVar var >> <- I think this > line is missing > putMVar v (0,var) > else > putMVar v (readers,var) And it looks to me like "readers >= 0" should be "readers > 0". Anyone agree/disagree? Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Bug in emptySampleVar, Jan Christiansen |
|---|---|
| Next by Date: | [ ghc-Bugs-881718 ] spurious warning for no-main module when using -main-is, SourceForge.net |
| Previous by Thread: | Bug in emptySampleVar, Jan Christiansen |
| Next by Thread: | [ ghc-Bugs-881718 ] spurious warning for no-main module when using -main-is, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |