Megosztás a következőn keresztül:


agent::run Method

Represents the main task of an agent. run should be overridden in a derived class, and specifies what the agent should do after it has been started.

virtual void run() = 0;

Remarks

The agent status is changed to agent_started right before this method is invoked. The method should invoke done on the agent with an appropriate status before returning, and may not throw any exceptions.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

agent Class