Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

context_unblock_unbalanced Class

 

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

This class describes an exception thrown when calls to the Block and Unblock methods of a Context object are not properly paired.

class context_unblock_unbalanced : public std::exception;  

Public Constructors

NameDescription
context_unblock_unbalanced::context_unblock_unbalanced ConstructorOverloaded. Constructs a context_unblock_unbalanced object.

Calls to the Block and Unblock methods of a Context object must always be properly paired. The Concurrency Runtime allows the operations to happen in either order. For example, a call to Block can be followed by a call to Unblock, or vice-versa. This exception would be thrown if, for instance, two calls to the Unblock method were made in a row, on a Context object which was not blocked.

exception

context_unblock_unbalanced

Header: concrt.h

Namespace: concurrency

Constructs a context_unblock_unbalanced object.

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

 
context_unblock_unbalanced() throw();

Parameters

_Message
A descriptive message of the error.

concurrency Namespace

Show:
© 2017 Microsoft