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.

  1. ThreadBlocked :: BlockReason -> ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    the thread is blocked on some resource

  2. ThreadDied :: ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    the thread received an uncaught exception

  3. ThreadFinished :: ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    the thread has finished

  4. data ThreadId

    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.

  5. ThreadId :: ThreadId# -> ThreadId

    ghc-internal GHC.Internal.Conc.Sync

    No documentation available.

  6. ThreadRunning :: ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    the thread is currently runnable or running

  7. data ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    The current status of a thread

  8. fromThreadId :: ThreadId -> Word64

    ghc-internal GHC.Internal.Conc.Sync

    Map a thread to an integer identifier which is unique within the current process.

  9. 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
    

  10. 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.

Page 533 of many | Previous | Next