Commit 57f63882 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-03-08 13:41:31 by simonmar]

update for blocking putMVar
parent f0b635a2
import Concurrent import Concurrent
import Exception import Exception
-- test that putMVar blocks on a full MVar rather than raising an
-- exception.
main = do main = do
Exception.catch (do t <- forkIO (
m <- newMVar () Exception.catch (do
putMVar m () m <- newMVar ()
) putMVar m ()
(\e -> print e) )
(\e -> print e)
)
threadDelay 500000
killThread t
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment