mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states)
This commit is contained in:
@ -46,7 +46,7 @@ class AsyncPool{
|
||||
|
||||
for($i = 0; $i < $this->size; ++$i){
|
||||
$this->workerUsage[$i] = 0;
|
||||
$this->workers[$i] = new AsyncWorker();
|
||||
$this->workers[$i] = new AsyncWorker($server->getLoader());
|
||||
$this->workers[$i]->start();
|
||||
}
|
||||
}
|
||||
@ -110,4 +110,4 @@ class AsyncPool{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user