[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.
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
Concurrency::ScheduleGroup
Header: concrt.h
Reference