From c4ff8921f1c38ab04d0efeb706347363708ec12c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 25 Apr 2013 20:29:45 +0200 Subject: [PATCH] StackableArrays class --- src/network/Query.php | 5 +---- src/{Async.php => utils/pthreads.php} | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) rename src/{Async.php => utils/pthreads.php} (94%) diff --git a/src/network/Query.php b/src/network/Query.php index d67dee3325..9198faf083 100644 --- a/src/network/Query.php +++ b/src/network/Query.php @@ -31,14 +31,11 @@ Source: http://wiki.unrealadmin.org/UT3_query_protocol */ class Query{ - private $socket, $workers, $threads, $server, $lastToken, $token, $longData, $timeout; + private $socket, $server, $lastToken, $token, $longData, $timeout; public function __construct(){ - $this->workers = array(); $this->password = (string) $password; console("[INFO] Starting GS4 status listener"); - $this->threads = (int) max(1, $threads); - $this->clientsPerThread = (int) max(1, $clientsPerThread); $this->server = ServerAPI::request(); $addr = $this->server->api->getProperty("server-ip", "0.0.0.0"); $port = $this->server->api->getProperty("server-port"); diff --git a/src/Async.php b/src/utils/pthreads.php similarity index 94% rename from src/Async.php rename to src/utils/pthreads.php index b25c245a32..7895e34808 100644 --- a/src/Async.php +++ b/src/utils/pthreads.php @@ -25,6 +25,11 @@ the Free Software Foundation, either version 3 of the License, or */ +class StackableArray{ + public $counter = 0; + public function run(){} +} + class Async extends Thread { public function __construct($method, $params = array()){ $this->method = $method;