Mono Class Library: System.Threading.Interlocked Overview | Members

System.Threading.Interlocked.Exchange Method

Sets a float variable to a specified value as an atomic operation and returns the original value.

public static float Exchange (ref float location1, float value)

Parameters

location1
A float variable to set to the supplied value as an atomic operation.
value
The float value to which location1 is set.

Returns

A float containing the value of location1 before the exchange.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0