pocketmine\Thread::quit PHP 메소드

quit() 공개 메소드

Stops the thread using the best way possible. Try to stop it yourself before calling this.
public quit ( )
    public function quit()
    {
        $this->isKilled = true;
        $this->notify();
        if (!$this->isJoined()) {
            if (!$this->isTerminated()) {
                $this->join();
            }
        }
        ThreadManager::getInstance()->remove($this);
    }

Usage Example

예제 #1
0
 public function quit()
 {
     $this->shutdown();
     // Windows sucks
     if (Utils::getOS() !== "win") {
         parent::quit();
     }
 }
All Usage Examples Of pocketmine\Thread::quit