mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Added settings.async-workers to tune the amount of AsyncTask workers
This commit is contained in:
@ -24,13 +24,10 @@ namespace pocketmine\scheduler;
|
||||
class AsyncWorker extends \Worker{
|
||||
public $path;
|
||||
|
||||
public function __construct(){
|
||||
public function start($options = PTHREADS_INHERIT_ALL){
|
||||
$this->path = \pocketmine\PATH;
|
||||
return parent::start(PTHREADS_INHERIT_ALL & ~PTHREADS_INHERIT_CLASSES);
|
||||
}
|
||||
|
||||
public function start(){
|
||||
|
||||
return parent::start($options & ~PTHREADS_INHERIT_CLASSES);
|
||||
}
|
||||
|
||||
public function run(){
|
||||
|
Reference in New Issue
Block a user