Click or drag to resize

InterlockableT Class

Manages a value that can be safely accessed by different threads.
Inheritance Hierarchy
SystemObject
  Altaxo.ThreadingInterlockableT

Namespace: Altaxo.Threading
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Interlockable<T>

Type Parameters

T
The type of value.

The InterlockableT type exposes the following members.

Constructors
 NameDescription
Public methodInterlockableT Initializes a new instance of the InterlockableT class.
Top
Properties
 NameDescription
Public propertyValue Gets or sets the value.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExchange Replaces the value with a new value.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodModify Modifies the value, by using the provided function. Since the function is executed in the locked state, execution must be kept short!
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic member(T to InterlockableT) Performs an explicit conversion from the value type [!:T] to InterlockableT.
Public operatorStatic member(InterlockableT to T) Performs an implicit conversion from InterlockableT to T/>.
Top
See Also