protected function launchNextTask()
    {
        if (! $this->numberOfThreadsToLaunch) {
            return false;
        }
        
        $taskInfos = $this->pool[$this->numberOfTasks - $this->numberOfThreadsToLaunch];
        
        $taskInfos['task']->fork();
        $this->numberOfRunningThreads++;
        $this->numberOfThreadsToLaunch--;
        
        return true;
    }
protected function launchNextTask()
    {
        if (! $this->numberOfThreadsToLaunch) {
            return false;
        }
        
        $taskInfos = $this->pool[$this->numberOfTasks - $this->numberOfThreadsToLaunch];
        
        $taskInfos['task']->fork();
        $this->numberOfRunningThreads++;
        $this->numberOfThreadsToLaunch--;
        
        return true;
    }
protected function launchNextTask ( ) { if ( ! $ this -> numberOfThreadsToLaunch ) { return false ; } $ taskInfos = $ this -> pool [ $ this -> numberOfTasks - $ this -> numberOfThreadsToLaunch ] ; $ taskInfos [ 'task' ] -> fork ( ) ; $ this -> numberOfRunningThreads ++ ; $ this -> numberOfThreadsToLaunch -- ; return true ; }
Fork next task
@return bool True if a task was launch, false if all tasks are already launched
Fork next task