Compartir a través de


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;

Members

Values

Name

Description

Blocking

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

Idle

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.

Nesting

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

Remarks

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.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

concurrency Namespace