public function join()
    {
        while (true) {
            $finished = true;
            foreach ($this->processes as $pid => $process) {
                if ($process->isAlive()) {
                    $finished = false;
                    break;
                }
            }

            if ($finished) {
                break;
            }

            unset($finished);
            usleep(10000);
        }
    }
public function join()
    {
        while (true) {
            $finished = true;
            foreach ($this->processes as $pid => $process) {
                if ($process->isAlive()) {
                    $finished = false;
                    break;
                }
            }

            if ($finished) {
                break;
            }

            unset($finished);
            usleep(10000);
        }
    }
public function join ( ) { while ( true ) { $ finished = true ; foreach ( $ this -> processes as $ pid => $ process ) { if ( $ process -> isAlive ( ) ) { $ finished = false ; break ; } } if ( $ finished ) { break ; } unset ( $ finished ) ; usleep ( 10000 ) ; } }
Block execution until each managed process has completed.

@return void
Block execution until each managed process has completed .