C# Класс Accord.InterlockedEx

An extension of System.Threading.Interlocked providing atomic operations such as Add and Increment to floating point numbers.
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( double &location1, double value ) : double

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

Increment ( double &location1 ) : double

Increments a specified variable and stores the result, as an atomic operation.

Описание методов

Add() публичный статический метод

Adds two 32-bit floating point values and replaces the first double value with their sum, as an atomic operation.
public static Add ( double &location1, double value ) : double
location1 double The first variable to be added.
value double The second variable to be added.
Результат double

Increment() публичный статический метод

Increments a specified variable and stores the result, as an atomic operation.
public static Increment ( double &location1 ) : double
location1 double The variable to be incremented.
Результат double