@@ -6,6 +6,7 @@ module Control.Distributed.Process.Internal.StrictMVar
9 , withMVar
10 , withMVar
10 , modifyMVar_
11 , modifyMVar_
11 , modifyMVar
12 , modifyMVar
@@ -21,6 +22,7 @@ import qualified Control.Concurrent.MVar as MVar
22 , takeMVar
23 , takeMVar
24 , withMVar
26 , withMVar
25 , modifyMVar_
27 , modifyMVar_
26 , modifyMVar
28 , modifyMVar
@@ -44,6 +46,9 @@ takeMVar (StrictMVar v) = MVar.takeMVar v
44putMVar :: StrictMVar a -> a -> IO ()
46putMVar :: StrictMVar a -> a -> IO ()
45putMVar (StrictMVar v) x = evaluate x >> MVar.putMVar v x
47putMVar (StrictMVar v) x = evaluate x >> MVar.putMVar v x
49+readMVar :: StrictMVar a -> IO a
50+readMVar (StrictMVar v) = MVar.readMVar v
47withMVar :: StrictMVar a -> (a -> IO b) -> IO b
52withMVar :: StrictMVar a -> (a -> IO b) -> IO b
48withMVar (StrictMVar v) = MVar.withMVar v
53withMVar (StrictMVar v) = MVar.withMVar v