Share via


agent::agent Constructor

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

See Also

Reference

agent Class

Scheduler Class

ScheduleGroup Class