Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops Performs a machine-level compare and swap (CAS) operation on an UnliftedMutVar#. Returns a tuple containing an Int# which is '1#' when a swap is performed, along with the most "current" value from the UnliftedMutVar#. This return value can be used as the expected value if a CAS loop is required, though it may be better to get a fresh read. Note that this behavior differs from the more common CAS behavior, which is to return the old value before the CAS occured.
-
primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops Check whether two UnliftedMutVar#es refer to the same mutable variable. This is a check on object identity, and not on contents.
-
primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops No documentation available.
UnliftedMutVar :: UnliftedMutVar# s unlifted_a -> UnliftedMutVar_ s a (unlifted_a :: UnliftedType)primitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.
type
UnliftedMutVar s a = UnliftedMutVar_ s a Unlifted aprimitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.
data
UnliftedMutVar_ s a (unlifted_a :: UnliftedType)primitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.
atomicSwapUnliftedMutVar :: PrimUnlifted a => UnliftedMutVar s a -> a -> ST s aprimitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.
casUnliftedMutVar :: PrimUnlifted a => UnliftedMutVar s a -> a -> a -> ST s (Bool, a)primitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.