Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ThreadBlocked :: BlockReason -> ThreadStatusghc-internal GHC.Internal.Conc.Sync the thread is blocked on some resource
-
ghc-internal GHC.Internal.Conc.Sync the thread received an uncaught exception
ThreadFinished :: ThreadStatusghc-internal GHC.Internal.Conc.Sync the thread has finished
-
ghc-internal GHC.Internal.Conc.Sync A ThreadId is an abstract type representing a handle to a thread. ThreadId is an instance of Eq, Ord and Show, where the Ord instance implements an arbitrary total ordering over ThreadIds. The Show instance lets you convert an arbitrary-valued ThreadId to string form; showing a ThreadId value is occasionally useful when debugging or diagnosing the behaviour of a concurrent program. Note: in GHC, if you have a ThreadId, you essentially have a pointer to the thread itself. This means the thread itself can't be garbage collected until you drop the ThreadId. This misfeature would be difficult to correct while continuing to support threadStatus.
ThreadId :: ThreadId# -> ThreadIdghc-internal GHC.Internal.Conc.Sync No documentation available.
-
ghc-internal GHC.Internal.Conc.Sync the thread is currently runnable or running
-
ghc-internal GHC.Internal.Conc.Sync The current status of a thread
fromThreadId :: ThreadId -> Word64ghc-internal GHC.Internal.Conc.Sync Map a thread to an integer identifier which is unique within the current process.
killThread :: ThreadId -> IO ()ghc-internal GHC.Internal.Conc.Sync killThread raises the ThreadKilled exception in the given thread (GHC only).
killThread tid = throwTo tid ThreadKilled
labelThread :: ThreadId -> String -> IO ()ghc-internal GHC.Internal.Conc.Sync labelThread stores a string as identifier for this thread. This identifier will be used in the debugging output to make distinction of different threads easier (otherwise you only have the thread state object's address in the heap). It also emits an event to the RTS eventlog.