C# 클래스 Accord.InterlockedEx

An extension of System.Threading.Interlocked providing atomic operations such as Add and Increment to floating point numbers.
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
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