-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Threading_InterlockedOperations
Andrew Koryavchenko edited this page Jun 17, 2018
·
9 revisions
Provides a helper class for initializing a values in a thread-safe manner.
System.Object
CodeJam.Threading.InterlockedOperations
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class InterlockedOperations
VB
Public NotInheritable Class InterlockedOperations
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type InterlockedOperations = class end
Name | Description | |
---|---|---|
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). | |
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). | |
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). | |
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). | |
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. | |
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. | |
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. | |
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. | |
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). | |
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. | |
Update(Double, Func(Double, Double)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Int32, Func(Int32, Int32)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Int64, Func(Int64, Int64)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Single, Func(Single, Single)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Double, Double, Func(Double, Double, Double)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Int32, Int32, Func(Int32, Int32, Int32)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Int64, Int64, Func(Int64, Int64, Int64)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(Single, Single, Func(Single, Single, Single)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(T)(T, Func(T, T)) | Implements lock-free update pattern implementation based on compare-and-swap loop | |
Update(T)(T, T, Func(T, T, T)) | Implements lock-free update pattern implementation based on compare-and-swap loop |