共用方式為


IExecutionContext::GetScheduler Method

Returns an interface to the scheduler this execution context belongs to.

virtual IScheduler * GetScheduler() =0;

Return Value

An IScheduler interface.

Remarks

You are required to initialize the execution context with a valid IScheduler interface before you use it as a parameter to methods supplied by the Resource Manager.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

IExecutionContext Structure