We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 int Update( ref int value, int newValue, Func<int, int, int> updateCallback )
VB
Public Shared Function Update ( ByRef value As Integer, newValue As Integer, updateCallback As Func(Of Integer, Integer, Integer) ) As Integer
F#
static member Update : value : int byref * newValue : int * updateCallback : Func<int, int, int> -> int
Type: Int32New value.
Uses the same approach that used by c# compiler in event subscription methods
InterlockedOperations ClassUpdate OverloadCodeJam.Threading Namespace