Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states)

This commit is contained in:
Shoghi Cervantes
2015-03-14 15:22:13 +01:00
parent 2cd757d80a
commit 9158cc4f19
11 changed files with 31 additions and 54 deletions

View File

@ -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);
}
}
}
}