Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SwitchingProxyState Enumeration
Collapse the table of content
Expand the table of content

SwitchingProxyState Enumeration

Used to denote the state a thread proxy is in, when it is executing a cooperative context switch to a different thread proxy.

enum SwitchingProxyState;





Indicates that the calling thread is cooperatively blocking and should be exclusively owned by the caller until subsequently running again and performing other action.


Indicates that the calling thread is no longer needed by the scheduler and is being returned to the Resource Manager. The context which was being dispatched is no longer able to be utilized by the Resource Manager.


Indicates that the calling thread is nesting a child scheduler and is needed by the caller, in order to attach to a different scheduler.

A parameter of type SwitchingProxyState is passed in to the method IThreadProxy::SwitchTo to instruct the Resource Manager how to treat the thread proxy that is making the call.

For more information on how this type is used, see IThreadProxy::SwitchTo .

Header: concrtrm.h

Namespace: Concurrency

Community Additions

© 2015 Microsoft