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. ThreadId :: ThreadId# -> ThreadId

    base GHC.Conc.Sync

    No documentation available.

  2. ThreadRunning :: ThreadStatus

    base GHC.Conc.Sync

    the thread is currently runnable or running

  3. data ThreadStatus

    base GHC.Conc.Sync

    The current status of a thread

  4. fromThreadId :: ThreadId -> Word64

    base GHC.Conc.Sync

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

  5. killThread :: ThreadId -> IO ()

    base GHC.Conc.Sync

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

    killThread tid = throwTo tid ThreadKilled
    

  6. labelThread :: ThreadId -> String -> IO ()

    base GHC.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.

  7. labelThreadByteArray# :: ThreadId -> ByteArray# -> IO ()

    base GHC.Conc.Sync

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

  8. listThreads :: IO [ThreadId]

    base GHC.Conc.Sync

    List the Haskell threads of the current process.

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

    base GHC.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.

  10. myThreadId :: IO ThreadId

    base GHC.Conc.Sync

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

Page 443 of many | Previous | Next