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

This class describes an exception thrown when the Concurrency Runtime detects that you neglected to call the CurrentScheduler::Detach method on a context that attached to a second scheduler using the Attach method of the Scheduler object. More...

#include <concrt.h>

Inheritance diagram for Concurrency::nested_scheduler_missing_detach:

Public Member Functions

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

Detailed Description

This class describes an exception thrown when the Concurrency Runtime detects that you neglected to call the CurrentScheduler::Detach method on a context that attached to a second scheduler using the Attach method of the Scheduler object.

This exception is thrown only when you nest one scheduler inside another by calling the Attach method of a Scheduler object on a context that is already owned by or attached to another scheduler. The Concurrency Runtime throws this exception opportunistically when it can detect the scenario as an aid to locating the problem. Not every instance of neglecting to call the CurrentScheduler::Detach method is guaranteed to throw this exception.

See also
Scheduler Class, CurrentScheduler::Detach Method, Scheduler::Attach Method

Constructor & Destructor Documentation

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

Constructs a nested_scheduler_missing_detach object.

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

Constructs a nested_scheduler_missing_detach object.


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