projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9a8f1fd
)
There's no need to explicitly check for blocked status in runInUnboundThread when...
author
Bas van Dijk
<v.dijk.bas@gmail.com>
Thu, 14 Oct 2010 21:23:25 +0000
(21:23 +0000)
committer
Bas van Dijk
<v.dijk.bas@gmail.com>
Thu, 14 Oct 2010 21:23:25 +0000
(21:23 +0000)
Control/Concurrent.hs
patch
|
blob
|
history
diff --git
a/Control/Concurrent.hs
b/Control/Concurrent.hs
index
f509bc0
..
bd05cdc
100644
(file)
--- a/
Control/Concurrent.hs
+++ b/
Control/Concurrent.hs
@@
-430,10
+430,8
@@
runInUnboundThread action = do
if bound
then do
mv <- newEmptyMVar
- b <- blocked
_ <- mask $ \restore -> forkIO $
- Exception.try (if b then action else restore action) >>=
- putMVar mv
+ Exception.try (restore action) >>= putMVar mv
takeMVar mv >>= unsafeResult
else action