public function reloadWorker($id)
    {
        if (isset($this->workers->threads[$id])) {
            if (!$this->workers->threads[$id]->reloaded) {
                Daemon::$process->log('Spawning worker-replacer for reloaded worker #' . $id);
                $this->spawnWorkers(1);
                $this->workers->threads[$id]->reloaded = true;
            }
        }
    }
public function reloadWorker($id)
    {
        if (isset($this->workers->threads[$id])) {
            if (!$this->workers->threads[$id]->reloaded) {
                Daemon::$process->log('Spawning worker-replacer for reloaded worker #' . $id);
                $this->spawnWorkers(1);
                $this->workers->threads[$id]->reloaded = true;
            }
        }
    }
public function reloadWorker ( $ id ) { if ( isset ( $ this -> workers -> threads [ $ id ] ) ) { if ( ! $ this -> workers -> threads [ $ id ] -> reloaded ) { Daemon :: $ process -> log ( 'Spawning worker-replacer for reloaded worker #' . $ id ) ; $ this -> spawnWorkers ( 1 ) ; $ this -> workers -> threads [ $ id ] -> reloaded = true ; } } }
Reload worker by internal id
@param integer - Id of worker
@param integer $id
@return void
Reload worker by internal id