mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states)
This commit is contained in:
@ -109,9 +109,6 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
private $upload = 0;
|
||||
private $download = 0;
|
||||
|
||||
private $internalThreaded;
|
||||
private $externalThreaded;
|
||||
|
||||
public function __construct(Server $server){
|
||||
|
||||
$this->registerPackets();
|
||||
@ -119,10 +116,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
$this->server = $server;
|
||||
$this->identifiers = new \SplObjectStorage();
|
||||
|
||||
$this->internalThreaded = new \Threaded();
|
||||
$this->externalThreaded = new \Threaded();
|
||||
|
||||
$this->rakLib = new RakLibServer($this->internalThreaded, $this->externalThreaded, $this->server->getLogger(), $this->server->getLoader(), $this->server->getPort(), $this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp());
|
||||
$this->rakLib = new RakLibServer($this->server->getLogger(), $this->server->getLoader(), $this->server->getPort(), $this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp());
|
||||
$this->interface = new ServerHandler($this->rakLib, $this);
|
||||
$this->setName($this->server->getMotd());
|
||||
}
|
||||
|
Reference in New Issue
Block a user