IORefCAS-0.0.1.1: Atomic compare and swap for IORefs and CASRefs.

Data.CAS.Internal.Foreign

Description

This is a version of CAS that works outside of Haskell by using the FFI (and the GCC intrinsics-based Data.Bits.Atomic.)

Documentation

data CASRef a Source

Instances

CASable CASRef Word32

EXAMPLE SPECIALIZATION: a more efficient implementation for simple scalars.

Boilerplate TODO: We Should have one of these for all word-sized Scalar types.