IHostTaskManager Interface

 

Provides methods that allow the common language runtime (CLR) to work with tasks through the host instead of using the standard operating system threading or fiber functions.

MethodDescription
BeginDelayAbort MethodNotifies the host that managed code is entering a period in which the current task must not be aborted.
BeginThreadAffinity MethodNotifies the host that managed code is entering a period in which the current task must not be moved to another operating system thread.
CallNeedsHostHook MethodEnables the host to specify whether the common language runtime can inline the specified call to an unmanaged function.
CreateTask MethodRequests that the host create a new task.
EndDelayAbort MethodNotifies the host that managed code is exiting the period in which the current task must not be aborted, following an earlier call to BeginDelayAbort.
EndThreadAffinity MethodNotifies the host that managed code is exiting the period in which the current task must not be moved to another operating system thread, following an earlier call to BeginThreadAffinity.
EnterRuntime MethodNotifies the host that a call to an unmanaged method, such as a platform invoke method, is returning execution control to the CLR.
GetCurrentTask MethodGets an interface pointer to the task that is currently executing on the operating system thread from which this call is made.
GetStackGuarantee MethodGets the amount of stack space that is guaranteed to be available after a stack operation completes, but before the closing of a process.
LeaveRuntime MethodNotifies the host that managed code is about to make a call to an unmanaged function.
ReverseEnterRuntime MethodNotifies the host that a call is being made into the common language runtime (CLR) from unmanaged code.
ReverseLeaveRuntime MethodNotifies the host that control is leaving the CLR and entering an unmanaged function that was, in turn, called from managed code.
SetCLRTaskManager MethodProvides the host with an interface pointer to an ICLRTaskManager instance implemented by the CLR.
SetLocale MethodNotifies the host that the CLR has changed the locale on the current task.
SetStackGuarantee MethodReserved for internal use only.
SetUILocale MethodNotifies the host that the user interface locale has been changed on the current task.
Sleep MethodNotifies the host that the current task is going to sleep.
SwitchToTask MethodNotifies the host that it should switch out the current task.

IHostTaskManager allows the CLR to create and manage tasks, to provide hooks for the host to take action when control transfers from managed to unmanaged code and vice versa, and to specify certain actions the host can and cannot take during code execution.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

ICLRTask Interface
ICLRTaskManager Interface
IHostTask Interface
Hosting Interfaces

Show: