public function quit() { $this->isKilled = true; $this->notify(); if (!$this->isJoined()) { if (!$this->isTerminated()) { $this->join(); } } ThreadManager::getInstance()->remove($this); }
public function quit() { $this->shutdown(); // Windows sucks if (Utils::getOS() !== "win") { parent::quit(); } }