There was an error while loading. Please reload this page.
Implements lock-free update pattern implementation based on compare-and-swap loop
Namespace: CodeJam.ThreadingAssembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static double Update( ref double value, Func<double, double> updateCallback )
VB
Public Shared Function Update ( ByRef value As Double, updateCallback As Func(Of Double, Double) ) As Double
F#
static member Update : value : float byref * updateCallback : Func<float, float> -> float
Type: DoubleNew value.
Uses the same approach that used by c# compiler in event subscription methods
InterlockedOperations ClassUpdate OverloadCodeJam.Threading Namespace