diff options
Diffstat (limited to 'src/Control/Concurrent/Lifted/Instrument.hs')
-rw-r--r-- | src/Control/Concurrent/Lifted/Instrument.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Control/Concurrent/Lifted/Instrument.hs b/src/Control/Concurrent/Lifted/Instrument.hs index 29bac871..957b67bb 100644 --- a/src/Control/Concurrent/Lifted/Instrument.hs +++ b/src/Control/Concurrent/Lifted/Instrument.hs | |||
@@ -1,5 +1,4 @@ | |||
1 | {-# LANGUAGE FlexibleContexts #-} | 1 | {-# LANGUAGE FlexibleContexts #-} |
2 | {-# LANGUAGE Strict #-} | ||
3 | module Control.Concurrent.Lifted.Instrument | 2 | module Control.Concurrent.Lifted.Instrument |
4 | ( module Control.Concurrent.Lifted | 3 | ( module Control.Concurrent.Lifted |
5 | , forkIO | 4 | , forkIO |
@@ -13,7 +12,6 @@ import qualified Control.Concurrent.Lifted as Raw | |||
13 | import Control.Concurrent.Lifted hiding (fork) | 12 | import Control.Concurrent.Lifted hiding (fork) |
14 | import Control.Monad.Trans.Control | 13 | import Control.Monad.Trans.Control |
15 | import System.IO.Unsafe | 14 | import System.IO.Unsafe |
16 | import System.Mem.Weak | ||
17 | import qualified Data.Map.Strict as Map | 15 | import qualified Data.Map.Strict as Map |
18 | import Control.Exception.Lifted | 16 | import Control.Exception.Lifted |
19 | import Control.Monad.Base | 17 | import Control.Monad.Base |
@@ -40,6 +38,7 @@ globals = unsafePerformIO $ newMVar $ GlobalState | |||
40 | 38 | ||
41 | forkIO :: IO () -> IO ThreadId | 39 | forkIO :: IO () -> IO ThreadId |
42 | forkIO = fork | 40 | forkIO = fork |
41 | {-# INLINE forkIO #-} | ||
43 | 42 | ||
44 | fork :: MonadBaseControl IO m => m () -> m ThreadId | 43 | fork :: MonadBaseControl IO m => m () -> m ThreadId |
45 | fork action = do | 44 | fork action = do |
@@ -55,6 +54,7 @@ labelThread :: ThreadId -> String -> IO () | |||
55 | labelThread tid s = do | 54 | labelThread tid s = do |
56 | GHC.labelThread tid s | 55 | GHC.labelThread tid s |
57 | modifyThreads $ Map.adjust (\pt -> pt { lbl = s }) tid | 56 | modifyThreads $ Map.adjust (\pt -> pt { lbl = s }) tid |
57 | {-# INLINE labelThread #-} | ||
58 | 58 | ||
59 | threadsInformation :: IO [PerThread] | 59 | threadsInformation :: IO [PerThread] |
60 | threadsInformation = do | 60 | threadsInformation = do |