AtomicCounterLongAddAndGet Method |
Adds an amount to the counter and returns the new value.
Namespace: Akka.Util.InternalAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic long AddAndGet(
long amount
)
Public Function AddAndGet (
amount As Long
) As Long
public:
virtual long long AddAndGet(
long long amount
) sealed
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)
RemarksThis uses a CAS loop as Interlocked.Increment is not atomic for longs on 32bit systems.
See Also