NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Interlocked.Exchange (Single, Single)

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

[Visual Basic]
Overloads Public Shared Function Exchange( _
   ByRef location1 As Single, _
   ByVal value As Single _
) As Single
[C#]
public static float Exchange(
   ref float location1,
   float value
);
[C++]
public: static float Exchange(
   float** location1,
   float value
);
[JScript]
public static function Exchange(
   location1 : float,
   value : float
) : float;

Parameters

location1
The variable to set to the supplied value.
value
The value to which location1 is set.

Return Value

The original (unset) value of the location1 variable.

See Also

Interlocked Class | Interlocked Members | System.Threading Namespace | Interlocked.Exchange Overload List