Skip to content

T_CodeJam_Threading_InterlockedOperations

andrewvk edited this page Mar 30, 2016 · 9 revisions

InterlockedOperations Class

[This is preliminary documentation and is subject to change.]

Provides a helper class for initializing a values in a thread-safe manner.

Inheritance Hierarchy

System.Object
  CodeJam.Threading.InterlockedOperations
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[PublicAPIAttribute]
public static class InterlockedOperations

VB

<PublicAPIAttribute>
Public NotInheritable Class InterlockedOperations

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<PublicAPIAttribute>]
type InterlockedOperations =  class end

Methods

 

Name Description
Public methodStatic 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 null.
Public methodStatic 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.
  Back to Top

See Also

Reference

CodeJam.Threading Namespace

Clone this wiki locally