mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states)
This commit is contained in:
@ -33,7 +33,7 @@ class CommandReader extends Thread{
|
||||
* @param \Threaded $threaded
|
||||
*/
|
||||
public function __construct(\Threaded $threaded){
|
||||
$this->buffer = $threaded;
|
||||
$this->buffer = \ThreadedFactory::create();
|
||||
$this->start();
|
||||
}
|
||||
|
||||
@ -86,4 +86,4 @@ class CommandReader extends Thread{
|
||||
$lastLine = microtime(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user