| AtomicCounterLongAddAndGet Method |
Adds an amount to the counter and returns the new value.
Namespace:
Akka.Util.Internal
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public long AddAndGet(
long amount
)
abstract AddAndGet :
amount : int64 -> int64
override AddAndGet :
amount : int64 -> int64
Parameters
- amount
- Type: SystemInt64
The amount to add to the counter.
Return Value
Type:
Int64The new counter value.
Implements
IAtomicCounterTAddAndGet(T)Remarks This uses a CAS loop as Interlocked.Increment is not atomic for longs on 32bit systems.
See Also