The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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(
   _Inout_ IThreadProxy * pThreadProxy
) =0;


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

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.


Header: concrtrm.h

Namespace: concurrency