agent::done Method

Moves an agent into the agent_done state, indicating that the agent has completed.

bool done();

Return Value

true if the agent is moved to the agent_done state, false otherwise. An agent that has been canceled cannot be moved to the agent_done state.


This method should be called at the end of the run method, when you know the execution of your agent has completed.


Header: agents.h

Namespace: concurrency

See Also


agent Class

agent_status Enumeration