Export (0) Print
Expand All

agent::~agent Destructor

Destroys the agent.

virtual ~agent();

It is an error to destroy an agent that is not in a terminal state (either agent_done or agent_canceled). This can be avoided by waiting for the agent to reach a terminal state in the destructor of a class that inherits from the agent class.

Header: agents.h

Namespace: concurrency

© 2015 Microsoft