UNISTDX_IPC_PROCESS_GROUP
class sys::process_group

A group of processes.

Base classes
Types
Methods
  • swap(process_group & rhs) -> void

    Swap with rhs.

  • empty() const -> bool

    Check 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() -> iterator

    Returns iterator to the end of the container.

  • begin() -> iterator

    Returns iterator to the beginning of the container.

  • size() const -> size_t

    Get 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.

    bad_call
    if system error occurs, except std::errc::interrupted

    See
    std::errc
    See
    waitid(2)
  • wait() -> int

    Wait 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()
class sys::process_group_view
Derived classes
Fields
Methods
swap(process_group & lhs, process_group & rhs) -> void

Overload of std::swap for process_group.