public function request(Ezer_BusinessProcessWorkerTask $task)
 {
     $data = base64_encode(serialize($task));
     $pid = $this->getPid();
     //		echo "to thread ($pid): $data\n";
     parent::request($data);
     $this->current_task = $task;
 }
 /**
  * Removes a single client process from the server
  */
 protected function removeThreadClient(Ezer_ThreadClient $client)
 {
     unset($this->thread_clients[$client->getPid()]);
 }
Example #3
0
 public function request($task)
 {
     $pid = $this->getPid();
     $this->server->writeToAll("to thread ({$pid}): {$task}");
     parent::request($task);
 }
Example #4
0
 public function request($task)
 {
     $pid = $this->getPid();
     echo "to thread ({$pid}): {$task}\n";
     parent::request($task);
 }