System.Threading.Interlocked: Method Members

The methods of System.Threading.Interlocked are listed below. For a list of all members, see the Interlocked Members list.

See Also: Inherited members from System.Object

Public Methods

static
Add(ref int, int) : int
Documentation for this section has not yet been entered.
static
Add(ref long, long) : long
Documentation for this section has not yet been entered.
static
CompareExchange(ref double, double, double) : double
Documentation for this section has not yet been entered.
static
CompareExchange(ref int, int, int) : int
Compares two int values for equality and stores a specified value if they are equal.
static
CompareExchange(ref long, long, long) : long
Documentation for this section has not yet been entered.
static
CompareExchange(ref IntPtr, IntPtr, IntPtr) : IntPtr
Documentation for this section has not yet been entered.
static
CompareExchange(ref object, object, object) : object
Compares two object variables for equality and stores a specified object if they are equal.
static
CompareExchange(ref float, float, float) : float
Compares two float values for equality and stores a specified value if they are equal.
static
CompareExchange<T>(ref T, T, T) : T
Documentation for this section has not yet been entered.
static
Decrement(ref int) : int
Decrements the specified variable and stores the result as an atomic operation.
static
Decrement(ref long) : long
Decrements the specified variable and stores the result as an atomic operation.
static
Exchange(ref double, double) : double
Documentation for this section has not yet been entered.
static
Exchange(ref int, int) : int
Sets a int variable to a specified value as an atomic operation and returns the original value.
static
Exchange(ref long, long) : long
Documentation for this section has not yet been entered.
static
Exchange(ref IntPtr, IntPtr) : IntPtr
Documentation for this section has not yet been entered.
static
Exchange(ref object, object) : object
Sets a object reference to refer to a specified object as an atomic operation and returns a reference to the original object.
static
Exchange(ref float, float) : float
Sets a float variable to a specified value as an atomic operation and returns the original value.
static
Exchange<T>(ref T, T) : T
Documentation for this section has not yet been entered.
static
Increment(ref int) : int
Increments the specified variable and stores the result as an atomic operation.
static
Increment(ref long) : long
Increments the specified variable and stores the result as an atomic operation.
static
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 Interlocked.MemoryBarrier execute after memory accesses that follow the call to Interlocked.MemoryBarrier.

static
Read(ref long) : long
Documentation for this section has not yet been entered.