Partilhar via


ICorConfiguration::SetGCThreadControl Method

Sets the callback interface for scheduling threads for non-runtime tasks that would otherwise be blocked for a garbage collection.

HRESULT SetGCThreadControl (
        [in] IGCThreadControl* pGCThreadControl
);

Parameters

  • pGCThreadControl
    [in] A pointer to an IGCThreadControl object that notifies the host about the suspension of threads for non-runtime tasks.

Remarks

The host may choose within the IGCThreadControl::ThreadIsBlockingForSuspension callback whether to reschedule a thread.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

ICorConfiguration Interface