Partager via


unbounded_buffer::unbounded_buffer Constructor

Constructs an unbounded_buffer messaging block.

unbounded_buffer();

unbounded_buffer(
   filter_method const& _Filter
);

unbounded_buffer(
   Scheduler& _PScheduler
);

unbounded_buffer(
   Scheduler& _PScheduler,
   filter_method const& _Filter
);

unbounded_buffer(
   ScheduleGroup& _PScheduleGroup
);

unbounded_buffer(
   ScheduleGroup& _PScheduleGroup,
   filter_method const& _Filter
);

Parameters

  • _Filter
    A filter function which determines whether offered messages should be accepted.

  • _PScheduler
    The Scheduler object within which the propagation task for the unbounded_buffer messaging block is scheduled.

  • _PScheduleGroup
    The ScheduleGroup object within which the propagation task for the unbounded_buffer messaging block 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 _PScheduleGroup parameters.

The type filter_method is a functor with signature bool (_Type const &) which is invoked by this unbounded_buffer messaging block to determine whether or not it should accept an offered message.

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

unbounded_buffer Class

Scheduler Class

ScheduleGroup Class