Aracılığıyla paylaş


IExecutionContext::SetProxy Method

Associates a thread proxy with this execution context. The associated thread proxy invokes this method right before it starts executing the context's Dispatch method.

virtual void SetProxy(
   IThreadProxy * pThreadProxy
) =0;

Parameters

  • pThreadProxy
    An interface to the thread proxy that is about to enter the Dispatch method on this execution context.

Remarks

You are expected to save the parameter pThreadProxy and return it on a call to the GetProxy method. The Resource Manager guarantees that the thread proxy associated with the execution context will not change while the thread proxy is executing the Dispatch method.

Requirements

Header: concrtrm.h

Namespace: Concurrency

See Also

Reference

IExecutionContext Structure

IExecutionContext::GetProxy Method