private function coreLoop() { for ($i = $this->processManager->getChildrenCount(); $i < $this->maxWorkers; $i++) { $this->onWorkerAvailable(); } do { $this->loop(); pcntl_signal_dispatch(); if ($this->autoRestartInterval && microtime(true) - $this->startTime >= $this->autoRestartInterval) { $this->restart(); } $this->refreshLock(); } while ($this->isRunning); }