A group of processes.
public sys::process_group_viewusing const_iterator = std::vector< process >::const_iteratorContainer constant iterator.
using iterator = std::vector< process >::iteratorContainer iterator.
swap(process_group & rhs) -> void
Swap with rhs.
empty() const -> boolCheck if the group is empty.
back() -> process &Returns the last process.
back() const -> const process &Returns the last process.
front() -> process &Returns the first process.
front() const -> const process &Returns the first process.
end() -> iteratorReturns iterator to the end of the container.
begin() -> iteratorReturns iterator to the beginning of the container.
size() const -> size_tGet the number of proccess in the group.
operator[](size_t i) -> process &
Get process by index i.
operator[](size_t i) const -> const process &
Get process by index i.
template <class Lock, class F> wait(Lock & lock, F callback, wait_flags flags = wait_flags::exited) -> void
Wait until all processes finish their execution unlocking lock for the duration of wait.
std::errc::interrupted
wait() -> intWait until all processes finish their execution.
template <class F> emplace(F && childmain, process_flag pf = process_flag::fork, size_t stack_size = 4096 *8) -> const process &
Add new process to a group using childmain as the main function.
operator=(process_group && rhs) -> process_group &Move-assignment.
operator=(const process_group &) -> process_group &process_group(const process_group &)process_group(process_group && rhs)Move-constructor.
~process_group()process_group()pid_type _idpriority(int value) -> voidpriority() const -> intid() const -> pid_typeGet process group ID.
terminate() -> voidTerminate all processes in the group.
send(signal s) -> void
Send signal s to all processes in the group.
operator=(process_group_view &&) -> process_group_view &process_group_view(process_group_view &&)operator=(const process_group_view &) -> process_group_view &process_group_view(const process_group_view &)~process_group_view()process_group_view()process_group_view(pid_type pid)explicitswap(process_group & lhs, process_group & rhs) -> voidOverload of std::swap for process_group.