STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Concurrency::missing_wait Class Reference

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. More...

#include <concrt.h>

Inheritance diagram for Concurrency::missing_wait:

Public Member Functions

_CONCRTIMP missing_wait (_In_z_ const char *_Message) throw ()
 Constructs a missing_wait object. More...
 
_CONCRTIMP missing_wait () throw ()
 Constructs a missing_wait object. More...
 

Detailed Description

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.

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.

See also
task_group Class, task_group::wait Method, task_group::run_and_wait Method, structured_task_group Class, structured_task_group::wait Method, structured_task_group::run_and_wait Method

Constructor & Destructor Documentation

_CONCRTIMP Concurrency::missing_wait::missing_wait ( _In_z_ const char _Message)
throw (
)
explicit

Constructs a missing_wait object.

Parameters
_MessageA descriptive message of the error.
_CONCRTIMP Concurrency::missing_wait::missing_wait ( )
throw (
)

Constructs a missing_wait object.


The documentation for this class was generated from the following file: