projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-08-22 11:45:06 by sewardj]
[ghc-hetmet.git]
/
ghc
/
tests
/
concurrent
/
should_run
/
conc020.hs
1
import Concurrent
2
import Exception
3
4
main = do
5
m <- newEmptyMVar
6
t <- forkIO (block $ takeMVar m)
7
threadDelay 100000
8
throwTo t (ErrorCall "I'm Interruptible")
9
threadDelay 100000
10
putMVar m () -- to avoid t being garbage collected