Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Constructs an agent.
_CRTIMP2 agent();
_CRTIMP2 agent(
Scheduler& _PScheduler
);
_CRTIMP2 agent(
ScheduleGroup& _PGroup
);
Parameters
_PScheduler
The Scheduler object within which the execution task of the agent is scheduled._PGroup
The ScheduleGroup object within which the execution task of the agent is scheduled. The Scheduler object used is implied by the schedule group.
Remarks
The runtime uses the default scheduler if you do not specify the _PScheduler or _PGroup parameters.
Requirements
Header: agents.h
Namespace: Concurrency