File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ import Data.IORef
5555
5656import GHC.Exts
5757import GHC.IO hiding (finally , onException )
58- import GHC.Conc (ThreadId (.. ))
58+ import GHC.Conc (ThreadId (.. ), labelThread )
5959
6060-- -----------------------------------------------------------------------------
6161-- STM Async API
@@ -504,6 +504,7 @@ linkOnly
504504linkOnly shouldThrow a = do
505505 me <- myThreadId
506506 void $ forkRepeat $ do
507+ myThreadId >>= flip labelThread (" linkOnly " ++ show (asyncThreadId a) ++ " -> " ++ show me)
507508 r <- waitCatch a
508509 case r of
509510 Left e | shouldThrow e -> throwTo me (ExceptionInLinkedThread a e)
@@ -684,6 +685,7 @@ concurrently' left right collect = do
684685 -- putMVar.
685686 when (count' > 0 ) $
686687 void $ forkIO $ do
688+ myThreadId >>= flip labelThread " concurrent stop"
687689 throwTo rid AsyncCancelled
688690 throwTo lid AsyncCancelled
689691 -- ensure the children are really dead
You can’t perform that action at this time.
0 commit comments