Export (0) Print
Expand All

Interlocked Members

Provides atomic operations for variables that are shared by multiple threads.

The Interlocked type exposes the following members.

  NameDescription
Public method Static member Add Overloaded. Adds two integers and replaces the first integer with the sum, as an atomic operation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CompareExchange Overloaded. Compares two values for equality and, if they are equal, replaces one of the values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Decrement Overloaded. Decrements a specified variable and stores the result, as an atomic operation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Exchange Overloaded. Sets a variable to a specified value as an atomic operation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Increment Overloaded. Increments a specified variable and stores the result, as an atomic operation.
Public method Static member Read Returns a 64-bit value, loaded as an atomic operation.
Top

Community Additions

ADD
Show:
© 2014 Microsoft