src/Util/Multithreading/Thread.php
public function run($parameters = array()) {

        // Grab a process ID for a new forked process
        $this->pid = \pcntl_fork();

        if (!$this->pid) {
            $this->process($parameters);
            posix_kill(getmypid(), 9);
        }

        return $this->pid;
    }
public function run($parameters = array()) {

        // Grab a process ID for a new forked process
        $this->pid = \pcntl_fork();

        if (!$this->pid) {
            $this->process($parameters);
            posix_kill(getmypid(), 9);
        }

        return $this->pid;
    }
public function run ( $ parameters = array ( ) ) { // Grab a process ID for a new forked process $ this -> pid = \ pcntl_fork ( ) ; if ( ! $ this -> pid ) { $ this -> process ( $ parameters ) ; posix_kill ( getmypid ( ) , 9 ) ; } return $ this -> pid ; }
Main run method called to start the thread.
Main run method called to start the thread .