SchedulerPolicy::SetConcurrencyLimits Method

SchedulerPolicy::SetConcurrencyLimits Method


Simultaneously sets the MinConcurrency and MaxConcurrency policies on the SchedulerPolicy object.

void SetConcurrencyLimits(
   unsigned int _MinConcurrency,
   unsigned int _MaxConcurrency = MaxExecutionResources


The value for the MinConcurrency policy key.


The value for the MaxConcurrency policy key.

The method will throw invalid_scheduler_policy_thread_specification if the value specified for the MinConcurrency policy is greater than that specified for the MaxConcurrency policy.

The method can also throw invalid_scheduler_policy_value for other invalid values.


Header: concrt.h

Namespace: concurrency

© 2016 Microsoft