Scheduler::Create Method
Visual Studio 2012
Creates a new scheduler whose behavior is described by the _Policy parameter, places an initial reference on the scheduler, and returns a pointer to it.
static Scheduler * __cdecl Create( const SchedulerPolicy& _Policy );
After a scheduler is created with the Create method, you must call the Release method at some point in the future in order to remove the initial reference count and allow the scheduler to shut down.
A scheduler created with this method is not attached to the calling context. It can be attached to a context using the Attach method.
This method can throw a variety of exceptions, including scheduler_resource_allocation_error and invalid_scheduler_policy_value.