This documentation is archived and is not being maintained.
.NET Framework 3.0
Provides atomic operations for variables that are shared by multiple threads.
The following tables list the members exposed by the Interlocked type.
|Add||Overloaded. Adds two integers and replaces the first integer with the sum, as an atomic operation.|
|CompareExchange||Overloaded. Compares two values for equality and, if they are equal, replaces one of the values.|
|Decrement||Overloaded. Decrements a specified variable and stores the result, as an atomic operation.|
|Equals||Overloaded. Determines whether two Object instances are equal. (inherited from Object)|
|Exchange||Overloaded. Sets a variable to a specified value as an atomic operation.|
|GetHashCode||Serves as a hash function for a particular type. (inherited from Object)|
|GetType||Gets the Type of the current instance. (inherited from Object)|
|Increment||Overloaded. Increments a specified variable and stores the result, as an atomic operation.|
|Read||Returns a 64-bit value, loaded as an atomic operation.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (inherited from Object)|
|ToString||Returns a String that represents the current Object. (inherited from Object)|