summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-06-08 04:08:46 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-06-08 04:08:46 +0000
commite595ba7d94324b8a9b14e3a43560113908e09337 (patch)
tree6256fae34ca84f3afe3bb561a7806ea1985b4df4
parented4af3d68efd4ed73a51fa547dd6d5e72c54f4ab (diff)
use Control.Concurrent.Lifted.Instrument so threads are listed
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 5316acc8..e79b66fc 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -2,6 +2,7 @@
2{-# LANGUAGE TupleSections #-} 2{-# LANGUAGE TupleSections #-}
3{-# LANGUAGE TypeOperators #-} 3{-# LANGUAGE TypeOperators #-}
4{-# LANGUAGE DeriveFunctor #-} 4{-# LANGUAGE DeriveFunctor #-}
5{-# LANGUAGE CPP #-}
5module Network.Tox.Crypto.Handlers where 6module Network.Tox.Crypto.Handlers where
6 7
7import Network.Tox.NodeId 8import Network.Tox.NodeId
@@ -40,8 +41,12 @@ import System.IO.Temp
40import System.Environment 41import System.Environment
41import System.Directory 42import System.Directory
42import System.Random -- for ping fuzz 43import System.Random -- for ping fuzz
44#ifdef THREAD_DEBUG
45import Control.Concurrent.Lifted.Instrument
46#else
43import Control.Concurrent 47import Control.Concurrent
44import GHC.Conc (labelThread) 48import GHC.Conc (labelThread)
49#endif
45import PingMachine 50import PingMachine
46import qualified Data.IntMap.Strict as IntMap 51import qualified Data.IntMap.Strict as IntMap
47import Control.Concurrent.Supply 52import Control.Concurrent.Supply