Delen via


SchedulerPolicy Class

The SchedulerPolicy class contains a set of key/value pairs, one for each policy element, that control the behavior of a scheduler instance.

class SchedulerPolicy;

Members

Public Constructors

Name

Description

SchedulerPolicy::SchedulerPolicy Constructor

Overloaded. Constructs a new scheduler policy and populates it with values for policy keys supported by Concurrency Runtime schedulers and the Resource Manager.

SchedulerPolicy::~SchedulerPolicy Destructor

Destroys a scheduler policy.

Public Methods

Name

Description

SchedulerPolicy::GetPolicyValue Method

Retrieves the value of the policy key supplied as the _Key parameter.

SchedulerPolicy::SetConcurrencyLimits Method

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

SchedulerPolicy::SetPolicyValue Method

Sets the value of the policy key supplied as the _Key parameter and returns the old value.

Public Operators

Name

Description

SchedulerPolicy::operator= Operator

Assigns the scheduler policy from another scheduler policy.

Remarks

For more information about the policies which can be controlled using the SchedulerPolicy class, see PolicyElementKey Enumeration.

Inheritance Hierarchy

SchedulerPolicy

Requirements

Header: concrt.h, concrtrm.h

Namespace: concurrency

See Also

Reference

concurrency Namespace

PolicyElementKey Enumeration

CurrentScheduler Class

Scheduler Class

Concepts

Task Scheduler (Concurrency Runtime)