projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e468014
)
fix #4876
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 6 Jan 2011 15:46:54 +0000
(15:46 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 6 Jan 2011 15:46:54 +0000
(15:46 +0000)
Control/Concurrent/SampleVar.hs
patch
|
blob
|
history
diff --git
a/Control/Concurrent/SampleVar.hs
b/Control/Concurrent/SampleVar.hs
index
c66241e
..
68e4b30
100644
(file)
--- a/
Control/Concurrent/SampleVar.hs
+++ b/
Control/Concurrent/SampleVar.hs
@@
-120,5
+120,5
@@
writeSampleVar (SampleVar svar) v = mask_ $ do
isEmptySampleVar :: SampleVar a -> IO Bool
isEmptySampleVar (SampleVar svar) = do
(readers, _) <- readMVar svar
- return (readers == 0)
+ return (readers <= 0)