Click or drag to resize

LogicalThreadLocal<T> Class

Represents a slot in the thread local memory space of each logical thread.
Inheritance Hierarchy
System.Object
  GSF.Threading.LogicalThreadLocal<T>

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.245-beta+94213ae9d4d0aa7a2c48e5398b12d267b99f868a
Syntax
public sealed class LogicalThreadLocal<T> : IDisposable
View Source

Type Parameters

T

The LogicalThreadLocal<T> type exposes the following members.

Constructors
 NameDescription
Public methodLogicalThreadLocal<T>() Creates a new instance of the LogicalThreadLocal<T> class.
Public methodLogicalThreadLocal<T>(Func<T>) Creates a new instance of the LogicalThreadLocal<T> class.
Top
Properties
 NameDescription
Public propertyValue Gets or sets the thread local object associated with the current logical thread.
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the LogicalThreadLocal<T> object.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the LogicalThreadLocal<T> object is reclaimed by GC.
(Overrides Object.Finalize())
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefault<T> Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also