AsyncPool: be less dependent on Server in the code

The goal is to remove the Server things from here completely.
This commit is contained in:
Dylan K. Taylor
2018-06-08 20:08:23 +01:00
parent af69418a55
commit c327b3d2c4
2 changed files with 17 additions and 10 deletions

View File

@ -1527,7 +1527,7 @@ class Server{
$poolSize = (int) $poolSize;
}
$this->asyncPool = new AsyncPool($this, $poolSize, (int) max(-1, (int) $this->getProperty("memory.async-worker-hard-limit", 256)));
$this->asyncPool = new AsyncPool($this, $poolSize, (int) max(-1, (int) $this->getProperty("memory.async-worker-hard-limit", 256)), $this->autoloader, $this->logger);
if($this->getProperty("network.batch-threshold", 256) >= 0){
Network::$BATCH_THRESHOLD = (int) $this->getProperty("network.batch-threshold", 256);