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. labelThreadByteArray# :: ThreadId -> ByteArray# -> IO ()

    ghc-internal GHC.Internal.Conc.Sync

    labelThreadByteArray# sets the label of a thread to the given UTF-8 encoded string contained in a ByteArray#.

  2. listThreads :: IO [ThreadId]

    ghc-internal GHC.Internal.Conc.Sync

    List the Haskell threads of the current process.

  3. mkWeakThreadId :: ThreadId -> IO (Weak ThreadId)

    ghc-internal GHC.Internal.Conc.Sync

    Make a weak pointer to a ThreadId. It can be important to do this if you want to hold a reference to a ThreadId while still allowing the thread to receive the BlockedIndefinitely family of exceptions (e.g. BlockedIndefinitelyOnMVar). Holding a normal ThreadId reference will prevent the delivery of BlockedIndefinitely exceptions because the reference could be used as the target of throwTo at any time, which would unblock the thread. Holding a Weak ThreadId, on the other hand, will not prevent the thread from receiving BlockedIndefinitely exceptions. It is still possible to throw an exception to a Weak ThreadId, but the caller must use deRefWeak first to determine whether the thread still exists.

  4. myThreadId :: IO ThreadId

    ghc-internal GHC.Internal.Conc.Sync

    Returns the ThreadId of the calling thread (GHC only).

  5. showThreadId :: ThreadId -> String

    ghc-internal GHC.Internal.Conc.Sync

    No documentation available.

  6. threadCapability :: ThreadId -> IO (Int, Bool)

    ghc-internal GHC.Internal.Conc.Sync

    Returns the number of the capability on which the thread is currently running, and a boolean indicating whether the thread is locked to that capability or not. A thread is locked to a capability if it was created with forkOn.

  7. threadLabel :: ThreadId -> IO (Maybe String)

    ghc-internal GHC.Internal.Conc.Sync

    Query the label of thread, returning Nothing if the thread's label has not been set.

  8. threadStatus :: ThreadId -> IO ThreadStatus

    ghc-internal GHC.Internal.Conc.Sync

    Query the current execution status of a thread.

  9. tryReadMVar :: MVar a -> IO (Maybe a)

    ghc-internal GHC.Internal.Control.Concurrent.MVar

    A non-blocking version of readMVar. The tryReadMVar function returns immediately, with Nothing if the MVar was empty, or Just a if the MVar was full with contents a.

  10. ThreadKilled :: AsyncException

    ghc-internal GHC.Internal.Control.Exception

    This exception is raised by another thread calling killThread, or by the system if it needs to terminate the thread for some reason.

Page 534 of many | Previous | Next