Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. threadStatus# :: ThreadId# -> State# RealWorld -> (# State# RealWorld, Int#, Int#, Int# #)

    base GHC.Base

    Get the status of the given thread. Result is (ThreadStatus, Capability, Locked) where ThreadStatus is one of the status constants defined in rts/Constants.h, Capability is the number of the capability which currently owns the thread, and Locked is a boolean indicating whether the thread is bound to that capability.

  2. waitRead# :: Int# -> State# d -> State# d

    base GHC.Base

    Block until input is available on specified file descriptor.

  3. ThreadBlocked :: BlockReason -> ThreadStatus

    base GHC.Conc

    the thread is blocked on some resource

  4. ThreadDied :: ThreadStatus

    base GHC.Conc

    the thread received an uncaught exception

  5. ThreadFinished :: ThreadStatus

    base GHC.Conc

    the thread has finished

  6. data ThreadId

    base GHC.Conc

    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.

  7. ThreadId :: ThreadId# -> ThreadId

    base GHC.Conc

    No documentation available.

  8. ThreadRunning :: ThreadStatus

    base GHC.Conc

    the thread is currently runnable or running

  9. data ThreadStatus

    base GHC.Conc

    The current status of a thread

  10. killThread :: ThreadId -> IO ()

    base GHC.Conc

    killThread raises the ThreadKilled exception in the given thread (GHC only).

    killThread tid = throwTo tid ThreadKilled
    

Page 440 of many | Previous | Next