Skip to content
Snippets Groups Projects
Commit e55a9f08 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Follow removal of block in base.


Signed-off-by: default avatarEdward Z. Yang <ezyang@mit.edu>
parent 957b959d
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ main :: IO ()
main = do
hSetBuffering stdout NoBuffering
[nthreads] <- fmap (map read) getArgs
tids <- replicateM nthreads $ block $ forkIO $ return ()
tids <- replicateM nthreads . mask $ \_ -> forkIO $ return ()
m <- newEmptyMVar
-- do it in a subthread to avoid bound-thread overhead
forkIO $ do mapM_ killThread tids; putMVar m ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment