Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.76 KB

missing-wait-class.md

File metadata and controls

64 lines (42 loc) · 1.76 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: missing_wait Class
missing_wait Class
11/04/2016
missing_wait
CONCRT/concurrency::missing_wait
CONCRT/concurrency::missing_wait::missing_wait
missing_wait class
ff981875-bd43-47e3-806f-b03c9f418b18

missing_wait Class

This class describes an exception thrown when there are tasks still scheduled to a task_group or structured_task_group object at the time that object's destructor executes. This exception will never be thrown if the destructor is reached because of a stack unwinding as the result of an exception.

Syntax

class missing_wait : public std::exception;

Members

Public Constructors

Name Description
missing_wait Overloaded. Constructs a missing_wait object.

Remarks

Absent exception flow, you are responsible for calling either the wait or run_and_wait method of a task_group or structured_task_group object before allowing that object to destruct. The runtime throws this exception as an indication that you forgot to call the wait or run_and_wait method.

Inheritance Hierarchy

exception

missing_wait

Requirements

Header: concrt.h

Namespace: concurrency

missing_wait

Constructs a missing_wait object.

explicit _CRTIMP missing_wait(_In_z_ const char* _Message) throw();

missing_wait() throw();

Parameters

_Message
A descriptive message of the error.

See also

concurrency Namespace
task_group Class
wait
run_and_wait
structured_task_group Class