Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

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

  1. tryReadMVar :: PrimMonad m => MVar (PrimState m) a -> m (Maybe a)

    primitive Data.Primitive.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.

    • It is single-wakeup instead of multiple-wakeup.
    • In the presence of other threads calling putMVar, tryReadMVar may block.
    • If another thread puts a value in the MVar in between the calls to tryTakeMVar and putMVar, that value may be overridden.

  2. atomicReadInt :: PrimMonad m => PrimVar (PrimState m) Int -> m Int

    primitive Data.Primitive.PrimVar

    Given a reference, atomically read an element.

  3. data ThreadId#

    ghc-prim GHC.Prim

    (In a non-concurrent implementation, this can be a singleton type, whose (unique) value is returned by myThreadId#. The other operations can be omitted.)

  4. atomicReadIntArray# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Int# #)

    ghc-prim GHC.Prim

    Given an array and an offset in machine words, read an element. The index is assumed to be in bounds. Implies a full memory barrier. Warning: this can fail with an unchecked exception.

  5. atomicReadWordAddr# :: Addr# -> State# d -> (# State# d, Word# #)

    ghc-prim GHC.Prim

    Given an address, read a machine word. Implies a full memory barrier. Warning: this can fail with an unchecked exception.

  6. isCurrentThreadBound# :: State# RealWorld -> (# State# RealWorld, Int# #)

    ghc-prim GHC.Prim

    No documentation available.

  7. killThread# :: ThreadId# -> a -> State# RealWorld -> State# RealWorld

    ghc-prim GHC.Prim

    No documentation available.

  8. labelThread# :: ThreadId# -> ByteArray# -> State# RealWorld -> State# RealWorld

    ghc-prim GHC.Prim

    Set the label of the given thread. The ByteArray# should contain a UTF-8-encoded string.

  9. listThreads# :: State# RealWorld -> (# State# RealWorld, Array# ThreadId# #)

    ghc-prim GHC.Prim

    Returns an array of the threads started by the program. Note that this threads which have finished execution may or may not be present in this list, depending upon whether they have been collected by the garbage collector.

  10. myThreadId# :: State# RealWorld -> (# State# RealWorld, ThreadId# #)

    ghc-prim GHC.Prim

    No documentation available.

Page 451 of many | Previous | Next