JoinableTaskContext Class

 

A common context within which joinable tasks may be created and interact to avoid deadlocks.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

System.Object
  Microsoft.VisualStudio.Threading.JoinableTaskContext

public class JoinableTaskContext : IHangReportContributor

NameDescription
System_CAPS_pubmethodJoinableTaskContext(Thread, SynchronizationContext)

Initializes a new instance of the JoinableTaskContext.

NameDescription
System_CAPS_pubpropertyFactory

Gets the factory which creates joinable tasks that do not belong to a joinable task collection.

System_CAPS_pubpropertyIsWithinJoinableTask

Determines whether the caller is currently running in the context of a joinable task.

System_CAPS_pubpropertyMainThread

Gets the main thread that can be shared by tasks created by this context.

NameDescription
System_CAPS_pubmethodCreateCollection()

Creates a collection for in-flight joinable tasks.

System_CAPS_protmethodCreateDefaultFactory()

Creates a factory without a JoinableTaskCollection.

System_CAPS_pubmethodCreateFactory(JoinableTaskCollection)

Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsMainThreadBlocked()

Determines whether the main thread is blocked for the caller's completion.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnHangDetected(TimeSpan, Int32, Guid)

Called when a hang is suspected to have occurred involving the main thread.

System_CAPS_pubmethodSuppressRelevance()

Conceals any ticket to the Main thread until the returned value is disposed.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIHangReportContributor.GetHangReport()

Contributes data for a hang report.

This type is thread-safe for all members.

Return to top
Show: