Scheduler::Release Method

Decrements the scheduler reference count.

virtual unsigned int Release() =0;

Return Value

The newly decremented reference count.


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 after all work on the scheduler has completed.


Header: concrt.h

Namespace: concurrency

See Also


Scheduler Class

Scheduler::Reference Method

Scheduler::Create Method