AtomicInt64 Class

Represents an atomic 64-bit signed integer.

Definition

Namespace: SnapDB.Threading
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class AtomicInt64
Inheritance
Object    AtomicInt64

Remarks

Since 64 bit reads/asignments are not atomic on a 32-bit process, this class wraps the Interlocked class to if using a 32-bit process to ensure atomic reads and writes.

Constructors

AtomicInt64 Initializes a new instance of the AtomicInt64 class with an optional initial value.

Properties

Value Gets or sets the value of the AtomicInt64.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Operators

(AtomicInt64 to Int64) Implicitly converts an AtomicInt64 to a long.

See Also