Click or drag to resize
Akka.NETAtomicCounterLongGetAndAdd Method
Gets the current value of the counter and adds an amount to it.

Namespace:  Akka.Util.Internal
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public long GetAndAdd(
	long amount
)

Parameters

amount
Type: SystemInt64
The amount to add to the counter.

Return Value

Type: Int64
The original value.

Implements

IAtomicCounterTGetAndAdd(T)
Remarks
This uses a CAS loop as Interlocked.Increment is not atomic for longs on 32bit systems.
See Also