Compartir a través de


agent::~agent Destructor

Destroys the agent.

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