Share via


task_group::~task_group Destructor

Destroys a task_group object. You are expected to call the either the wait or run_and_wait method on the object prior to the destructor executing, unless the destructor is executing as the result of stack unwinding due to an exception.

~task_group();

Remarks

If the destructor runs as the result of normal execution (for example, not stack unwinding due to an exception) and neither the wait nor run_and_wait methods have been called, the destructor may throw a missing_wait exception.

Requirements

Header: ppl.h

Namespace: concurrency

See Also

Reference

task_group Class

task_group::wait Method

task_group::run_and_wait Method