The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IPC::Simple::Group - work with several processes as a group

VERSION

version 0.09

DESCRIPTION

The constructor for this class should be considered private, and the semantics for instantiating this class may change.

Instead, use "process_group" in IPC::Simple to create process groups.

Also note that processes being added to a group must fit the following criteria:

no recv_cb
no term_cb

Grouping processes that have already been launched may result in messages being queued in the process' own queue rather than the group one.

METHODS

members

Returns the unordered list of IPC::Simple processes within this group.

launch

Launches all of the processes in this group.

terminate

Terminates all of the processes in this group. Arguments are forwarded to "terminate" in IPC::Simple.

signal

Sends a signal to all members of the group. Arguments are forwarded to "signal" in IPC::Simple.

  $group->signal('HUP');

join

Blocks until all of the processes in this group have terminated.

recv

Returns the next message to be received from one of the processes in this group.

AUTHOR

Jeff Ober <sysread@fastmail.fm>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Jeff Ober.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.