Share via


Scheduler::Release Method

Decrements this scheduler's reference count.

virtual unsigned int Release() =0;

Return Value

The newly decremented reference count.

Remarks

This is typically used to manage the lifetime of the scheduler for composition. When the reference count of a scheduler falls to zero, the scheduler will shut down and destruct itself once all work on the scheduler has completed.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

Scheduler Class

Scheduler::Reference Method

Scheduler::Create Method