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.
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#.
-
ghc-internal GHC.Internal.Conc.Sync List the Haskell threads of the current process.
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.
-
ghc-internal GHC.Internal.Conc.Sync Returns the ThreadId of the calling thread (GHC only).
showThreadId :: ThreadId -> Stringghc-internal GHC.Internal.Conc.Sync No documentation available.
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.
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.
threadStatus :: ThreadId -> IO ThreadStatusghc-internal GHC.Internal.Conc.Sync Query the current execution status of a thread.
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.
ThreadKilled :: AsyncExceptionghc-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.