Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Interlocked Methods

The Interlocked type exposes the following members.

  Name Description
Public method Static member Supported by Portable Class Library Add(Int32, Int32) Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.
Public method Static member Supported by Portable Class Library Add(Int64, Int64) Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation.
Public method Static member Supported by Portable Class Library CompareExchange(Double, Double, Double) Compares two double-precision floating point numbers for equality and, if they are equal, replaces the first value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CompareExchange(Int32, Int32, Int32) Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value.
Public method Static member Supported by Portable Class Library CompareExchange(Int64, Int64, Int64) Compares two 64-bit signed integers for equality and, if they are equal, replaces the first value.
Public method Static member Supported by Portable Class Library CompareExchange(IntPtr, IntPtr, IntPtr) Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CompareExchange(Object, Object, Object) Compares two objects for reference equality and, if they are equal, replaces the first object.
Public method Static member Supported by Portable Class Library CompareExchange(Single, Single, Single) Compares two single-precision floating point numbers for equality and, if they are equal, replaces the first value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CompareExchange<T>(T, T, T) Compares two instances of the specified reference type T for equality and, if they are equal, replaces the first one.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Decrement(Int32) Decrements a specified variable and stores the result, as an atomic operation.
Public method Static member Supported by Portable Class Library Decrement(Int64) Decrements the specified variable and stores the result, as an atomic operation.
Public method Static member Supported by Portable Class Library Exchange(Double, Double) Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Exchange(Int32, Int32) Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by Portable Class Library Exchange(Int64, Int64) Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by Portable Class Library Exchange(IntPtr, IntPtr) Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Exchange(Object, Object) Sets an object to a specified value and returns a reference to the original object, as an atomic operation.
Public method Static member Supported by Portable Class Library Exchange(Single, Single) Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Exchange<T>(T, T) Sets a variable of the specified type T to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Increment(Int32) Increments a specified variable and stores the result, as an atomic operation.
Public method Static member Supported by Portable Class Library Increment(Int64) Increments a specified variable and stores the result, as an atomic operation.
Public method Static member MemoryBarrier Synchronizes memory access as follows: The processor that executes the current thread cannot reorder instructions in such a way that memory accesses before the call to MemoryBarrier execute after memory accesses that follow the call to MemoryBarrier.
Public method Static member Supported by Portable Class Library Read Returns a 64-bit value, loaded as an atomic operation.
Top
Show:
© 2015 Microsoft