diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-26 13:08:39 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-08-06 11:48:50 -0400 |
commit | aa818a9f83308d0742e8f8c91cb9878182dacce5 (patch) | |
tree | 48089b58289212cfdaef065ad7cc21b77c8beaaa /libraries/base/GHC/Conc.hs | |
parent | 7267cd52fb0b06479b9ceea2dc4700d949a1d75b (diff) | |
download | haskell-aa818a9f83308d0742e8f8c91cb9878182dacce5.tar.gz |
Add primop to list threads
A user came to #ghc yesterday wondering how best to check whether they
were leaking threads. We ended up using the eventlog but it seems to me
like it would be generally useful if Haskell programs could query their
own threads.
Diffstat (limited to 'libraries/base/GHC/Conc.hs')
-rw-r--r-- | libraries/base/GHC/Conc.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/GHC/Conc.hs b/libraries/base/GHC/Conc.hs index 15397422a5..fbb7521860 100644 --- a/libraries/base/GHC/Conc.hs +++ b/libraries/base/GHC/Conc.hs @@ -45,6 +45,7 @@ module GHC.Conc , yield , labelThread , mkWeakThreadId + , listThreads , ThreadStatus(..), BlockReason(..) , threadStatus |