Click or drag to resize
Akka.NETInterlockedSpin Class
INTERNAL! Implements helpers for performing Compare-and-swap operations using CompareExchange<T>(T, T, T)
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Inheritance Hierarchy
System.Object
  Akka.Util.Internal.InterlockedSpin

Namespace:  Akka.Util.Internal
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static class InterlockedSpin

The InterlockedSpin type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConditionallySwap<T, TReturn>
INTERNAL! Atomically updates the int reference by calling updateIfTrue to get the new value. updateIfTrue returns a Tuple<should update, the new int value, the return value> If the first item in the tuple is true, the value is updated, and the third value of the tuple is returned. Note that updateIfTrue may be called many times so it should be idempotent.
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Public methodStatic memberSwap<T>
INTERNAL! Atomically updates the object reference by calling updater to get the new value. Note that updater may be called many times so it should be idempotent.
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Top
See Also