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 284958a21e
commit 11c13cd666
11 changed files with 31 additions and 54 deletions

View File

@ -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{
}
}
}
}
}