Freigeben über


ScheduleGroup::Reference Method

Increments the schedule group reference count.

virtual unsigned int Reference() =0;

Return Value

The newly incremented reference count.

Remarks

This is typically used to manage the lifetime of the schedule group for composition. When the reference count of a schedule group falls to zero, the schedule group is deleted by the runtime. A schedule group created using either the CurrentScheduler::CreateScheduleGroup method, or the Scheduler::CreateScheduleGroup method starts out with a reference count of one.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

ScheduleGroup Class

ScheduleGroup::Release Method

CurrentScheduler::CreateScheduleGroup Method

Scheduler::CreateScheduleGroup Method