Skip to content

Methods_T_CodeJam_Threading_InterlockedOperations

Andrew Koryavchenko edited this page Jul 4, 2017 · 4 revisions

InterlockedOperations Methods

Methods

 

Name Description
Public method Static member Initialize(Double, Double) Initialize the value referenced by target in a thread-safe manner. The value is changed to value only if the current value is default(double).
Public method Static member Initialize(Int32, Int32) Initialize the value referenced by target in a thread-safe manner. The value is changed to value only if the current value is default(int).
Public method Static member Initialize(Int64, Int64) Initialize the value referenced by target in a thread-safe manner. The value is changed to value only if the current value is default(long).
Public method Static member Initialize(Single, Single) Initialize the value referenced by target in a thread-safe manner. The value is changed to value only if the current value is default(float).
Public method Static member Initialize(Double, Double, Double) Initialize the value referenced by target in a thread-safe manner. The value is changed to initializedValue only if the current value is uninitializedValue.
Public method Static member Initialize(Int32, Int32, Int32) Initialize the value referenced by target in a thread-safe manner. The value is changed to initializedValue only if the current value is uninitializedValue.
Public method Static member Initialize(Int64, Int64, Int64) Initialize the value referenced by target in a thread-safe manner. The value is changed to initializedValue only if the current value is uninitializedValue.
Public method Static member Initialize(Single, Single, Single) Initialize the value referenced by target in a thread-safe manner. The value is changed to initializedValue only if the current value is uninitializedValue.
Public method Static member Initialize(T)(T, T) Initialize the value referenced by target in a thread-safe manner. The value is changed to value only if the current value is default(T).
Public method Static member Initialize(T)(T, T, T) Initialize the value referenced by target in a thread-safe manner. The value is changed to initializedValue only if the current value is uninitializedValue.
Public method Static member Update(Double, Func(Double, Double)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Int32, Func(Int32, Int32)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Int64, Func(Int64, Int64)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Single, Func(Single, Single)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Double, Double, Func(Double, Double, Double)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Int32, Int32, Func(Int32, Int32, Int32)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Int64, Int64, Func(Int64, Int64, Int64)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(Single, Single, Func(Single, Single, Single)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(T)(T, Func(T, T)) Implements lock-free update pattern implementation based on compare-and-swap loop
Public method Static member Update(T)(T, T, Func(T, T, T)) Implements lock-free update pattern implementation based on compare-and-swap loop
  Back to Top

See Also

Reference

InterlockedOperations Class
CodeJam.Threading Namespace

Clone this wiki locally