Click or drag to resize
Accord.NET (logo)

InterlockedExAdd Method

Adds two 32-bit floating point values and replaces the first double value with their sum, as an atomic operation.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static double Add(
	ref double location1,
	double value
)
Request Example View Source

Parameters

location1
Type: SystemDouble
The first variable to be added.
value
Type: SystemDouble
The second variable to be added.

Return Value

Type: Double
The updated value of the first variable.
See Also