ghc-prim-0.10.0: GHC primitives

Safe Haskell | None
Language | Haskell2010

GHC.Prim.Ext

Contents

- Misc
- Delay/wait operations

Description

Extra C-- routines exposed from the RTS

Users should not import this module. It is GHC internal only. Use GHC.Conc instead.

Actual primops are emitted by the compiler itself. They are special bits of code with backend support. The foreign functions in this module aren't actual primops because the compiler doesn't care about them at all: they just are extra foreign C-- calls libraries can make into the RTS.

Note that `Prim` has the same haddock section names as this module, but with descriptions. Consult that module's documentation for what each section means. are described over there.

Synopsis

- getThreadAllocationCounter# :: State# RealWorld -> (# State# RealWorld, Int64# #)

# Misc

getThreadAllocationCounter# :: State# RealWorld -> (# State# RealWorld, Int64# #) Source #

Retrieves the allocation counter for the current thread.

# Delay/wait operations