Condividi tramite


nested_scheduler_missing_detach Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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.

Syntax

class nested_scheduler_missing_detach : public std::exception;

Members

Public Constructors

Name Description
nested_scheduler_missing_detach::nested_scheduler_missing_detach Constructor Overloaded. Constructs a nested_scheduler_missing_detach object.

Remarks

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.

Inheritance Hierarchy

exception

nested_scheduler_missing_detach

Requirements

Header: concrt.h

Namespace: concurrency

nested_scheduler_missing_detach::nested_scheduler_missing_detach Constructor

Constructs a nested_scheduler_missing_detach object.

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

nested_scheduler_missing_detach() throw();

Parameters

_Message
A descriptive message of the error.

See Also

concurrency Namespace
Scheduler Class