Interlocked Methods
.NET Framework 3.5
The Interlocked type exposes the following members.
| Name | Description | |
|---|---|---|
|
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. |
|
Exchange | Overloaded. Sets a variable to a specified value as an atomic operation. |
|
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. |