[This is preliminary documentation and is subject to change.]
The NamedInterlocked TContext type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | NamedInterlocked TContext | Initializes a new instance of the NamedInterlocked TContext class |
Methods
Name | Description | |
---|---|---|
![]() | Add(Amount) | (Inherited from NamedInterlocked.) |
![]() | Add(NamedInterlocked, Nullable Int64 ) |
Adds slot snapshot from another source.
Pass exchange to flip the existing slots to the exchanged value
(Inherited from NamedInterlocked.) |
![]() | AddLong | (Inherited from NamedInterlocked.) |
![]() | Clear |
Deletes all state for all slots
(Inherited from NamedInterlocked.) |
![]() | Clear(String) |
Deletes all state for the named slot returning true if the slot was found and removed
(Inherited from NamedInterlocked.) |
![]() | DecrementLong | (Inherited from NamedInterlocked.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ExchangeLong |
Captures the current value of a named long value and atomically sets it to the passed value
(Inherited from NamedInterlocked.) |
![]() | Exists |
Returns true when the instance contains the named slot
(Inherited from NamedInterlocked.) |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | IncrementLong | (Inherited from NamedInterlocked.) |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ReadAtomicLong |
Returns a 64-bit value, loaded as an atomic operation even on a 32bit platform
(Inherited from NamedInterlocked.) |
![]() | SnapshotAllAmounts |
Enumerates all named amounts. This operation is thread-safe, and returns a snapshot of the instance taken at the time of the first call
If exchange is specified, atomicaly flips the value of every slot
(Inherited from NamedInterlocked.) |
![]() | SnapshotAllLongs |
Enumerates all named integers. This operation is thread-safe, and returns a snapshot of the instance taken at the time of the first call.
If exchange is specified, atomicaly flips the value of every slot
(Inherited from NamedInterlocked.) |
![]() | SnapshotAllLongsInto TDatum |
Records a snapshot of all longs converted into TDatum. The TDatum must have a public .ctor(string, long) or runtime exception is thrown
(this is because C# does not have a contract/constraint for parameterized cosntructors)
(Inherited from NamedInterlocked.) |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | VolatileReadLong |
Captures the current value of a named long value.
If slot does not exist, creates it and captures the value (which may be non-zero even if the slot was just created)
(Inherited from NamedInterlocked.) |
Extension Methods
Properties
Name | Description | |
---|---|---|
![]() | AllNames |
Enumerates all slot names. This operation is thread-safe, and returns a snapshot of the instance taken at the time of the first call
(Inherited from NamedInterlocked.) |
![]() | Context | |
![]() | Count |
Returns the current number of named slots in the instance
(Inherited from NamedInterlocked.) |
See Also