Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Constructs a new scheduler policy and populates it with values for policy keys supported by Concurrency Runtime schedulers and the Resource Manager.
SchedulerPolicy();
SchedulerPolicy(
size_t _PolicyKeyCount,
...
);
SchedulerPolicy(
const SchedulerPolicy& _SrcPolicy
);
Parameters
_PolicyKeyCount
The number of key/value pairs that follow the _PolicyKeyCount parameter._SrcPolicy
The source policy to copy.
Remarks
The first constructor creates a new scheduler policy where all policies will be initialized to their default values.
The second constructor creates a new scheduler policy that uses a named-parameter style of initialization. Values after the _PolicyKeyCount parameter are supplied as key/value pairs. Any policy key which is not specified in this constructor will have its default value. This constructor could throw the exceptions invalid_scheduler_policy_key, invalid_scheduler_policy_value or invalid_scheduler_policy_thread_specification.
The third constructor is a copy constructor. Often, the most convenient way to define a new scheduler policy is to copy an existing policy and modify it using the SetPolicyValue or SetConcurrencyLimits methods.
Requirements
Header: concrt.h
Namespace: concurrency
See Also
Reference
SchedulerPolicy::SetPolicyValue Method
SchedulerPolicy::GetPolicyValue Method