Share via


agent::~agent Destructor

Destroys the agent.

_CRTIMP2 virtual ~agent();

Remarks

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.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

agent Class