GHC.Prim.Ext

ghc-prim-0.6.1: GHC primitives

Safe Haskell | None
Language | Haskell2010

GHC.Prim.Ext

Contents

- Delay/wait operations
- Misc

Description

Extra C-- routines exposed from the RTS

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

- type INT64 = Int#
- type WORD64 = Word#
- getThreadAllocationCounter# :: State# RealWorld -> (# State# RealWorld, INT64 #)

# Documentation

type INT64 = Int# Source #

type WORD64 = Word# Source #

# Delay/wait operations

# Misc

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

Retrieves the allocation counter for the current thread.