Export (0) Print
Expand All

agent::cancel Method

Moves an agent from either the agent_created or agent_runnable states to the agent_canceled state.

_CRTIMP2 bool cancel();

true if the agent was canceled, false otherwise. An agent cannot be canceled if it has already started running or has already completed.

Header: agents.h

Namespace: Concurrency

Community Additions

ADD
Show:
© 2014 Microsoft