File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ import Data.IORef
55
55
56
56
import GHC.Exts
57
57
import GHC.IO hiding (finally , onException )
58
- import GHC.Conc (ThreadId (.. ))
58
+ import GHC.Conc (ThreadId (.. ), labelThread )
59
59
60
60
-- -----------------------------------------------------------------------------
61
61
-- STM Async API
@@ -504,6 +504,7 @@ linkOnly
504
504
linkOnly shouldThrow a = do
505
505
me <- myThreadId
506
506
void $ forkRepeat $ do
507
+ myThreadId >>= flip labelThread (" linkOnly " ++ show (asyncThreadId a) ++ " -> " ++ show me)
507
508
r <- waitCatch a
508
509
case r of
509
510
Left e | shouldThrow e -> throwTo me (ExceptionInLinkedThread a e)
@@ -684,6 +685,7 @@ concurrently' left right collect = do
684
685
-- putMVar.
685
686
when (count' > 0 ) $
686
687
void $ forkIO $ do
688
+ myThreadId >>= flip labelThread " concurrent stop"
687
689
throwTo rid AsyncCancelled
688
690
throwTo lid AsyncCancelled
689
691
-- ensure the children are really dead
You can’t perform that action at this time.
0 commit comments