Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ThreadId :: ThreadId# -> ThreadIdbase GHC.Conc.Sync No documentation available.
fromThreadId :: ThreadId -> Word64base GHC.Conc.Sync Map a thread to an integer identifier which is unique within the current process.
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.
-
base GHC.Conc.Sync Returns the ThreadId of the calling thread (GHC only).
showThreadId :: ThreadId -> Stringbase GHC.Conc.Sync No documentation available.
DivideByZero :: ArithExceptionbase GHC.Exception No documentation available.
DivideByZero :: ArithExceptionbase GHC.Exception.Type No documentation available.
-
base GHC.ExecutionStack.Internal Free the cached debug data.
-
base GHC.Exts (In a non-concurrent implementation, this can be a singleton type, whose (unique) value is returned by myThreadId#. The other operations can be omitted.)
-
base GHC.Exts No documentation available.