projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor SampleVar refactoring
[ghc-base.git]
/
Control
/
Concurrent
/
SampleVar.hs
diff --git
a/Control/Concurrent/SampleVar.hs
b/Control/Concurrent/SampleVar.hs
index
69c29c2
..
bdf5eac
100644
(file)
--- a/
Control/Concurrent/SampleVar.hs
+++ b/
Control/Concurrent/SampleVar.hs
@@
-61,8
+61,7
@@
newEmptySampleVar = do
-- |Build a 'SampleVar' with an initial value.
newSampleVar :: a -> IO (SampleVar a)
newSampleVar a = do
- v <- newEmptyMVar
- putMVar v a
+ v <- newMVar a
newMVar (1,v)
-- |If the SampleVar is full, leave it empty. Otherwise, do nothing.