Aspose::Page::EPS::Util::ThreadLocal class

ThreadLocal class

Class used to duplicate the functionality provided by the .NET Framework 4.0 and 4.5’s System.Threading.ThreadLocal wrapper type. This implements instance and static types that are thread local and refer to different instances across threads, even though the actual instance type that the class is a aggregate of might be the same.

template<typename T>class ThreadLocal : public System::IDisposable
ParameterDescription
TVariable type to wrap in thread selection logic

Methods

MethodDescription
Dispose() overrideDoes nothing.
get_Value()
isValueCreated()
set_Value(T)
SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
ThreadLocal(Factory)
static to_T(System::SharedPtr<ThreadLocal<T>>)

Typedefs

TypedefDescription
Factory

See Also