ScheduleGroup Class
This page is specific to:.NET Framework Version:4.0
Visual Studio 2010 - Visual C++
ScheduleGroup Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Abstraction for a schedule group.

class ScheduleGroup;
Members

Public Methods

Name

Description

ScheduleGroup::Id Method

The unique identifier of the schedule group.

ScheduleGroup::Reference Method

Increments the reference count of a schedule group. Used for composition.

ScheduleGroup::Release Method

Releases the reference count of a schedule group. When the reference count goes to zero, the schedule group is deleted by the runtime. A newly created schedule group has a reference count of 1 upon creation, and this method must be invoked before the schedule group can be destroyed. Any additional Release calls must be preceeded by corresponding calls to Reference. Not doing so could result in undefined behavior. Once the last reference on the schedule group is released, clients are expected *not* to schedule additional tasks using the schedule group. Pending tasks in the schedule group will complete before the runtime destroys a schedule group with a reference count of 0. Every schedule group is strongly associated with a scheduler instance. Clients must ensure that all references to a schedule group are released before all references to the scheduler are released, since the latter could result in the scheduler being destroyed. To do otherwise is unsupported behavior.

ScheduleGroup::ScheduleTask Method

Schedules a task in the schedule group. The task is scheduled in the default scheduler. Implicitly increments the schedule group's reference count.

Protected Operators

Inheritance Hierarchy

Concurrency::ScheduleGroup

Requirements

Header: concrt.h

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View