Inheritance: extends Thread
Esempio n. 1
0
 public function quit()
 {
     $this->shutdown();
     // Windows sucks
     if (Utils::getOS() !== "win") {
         parent::quit();
     }
 }
Esempio n. 2
0
 public function isGarbage() : bool
 {
     parent::isGarbage();
 }
Esempio n. 3
0
 /**
  * Commits a result into the output stream
  *
  * @internal Do <strong>not</strong> use this method outside this thread!
  *
  * @param QueryResult $result
  */
 public function pushResult(QueryResult $result)
 {
     if (Thread::getCurrentThreadId() !== $this->myId) {
         throw new \InvalidStateException("Attempt to call a thread-private method " . __METHOD__);
     }
     $this->output[] = $result;
 }