Removed ThreadedFactory

This commit is contained in:
Shoghi Cervantes
2015-09-18 11:18:41 +02:00
parent 8768b7fdbd
commit 472fcfa4c7
7 changed files with 7 additions and 8 deletions

View File

@ -42,7 +42,7 @@ class ThreadManager extends \Volatile{
*/
public function add($thread){
if($thread instanceof Thread or $thread instanceof Worker){
$this->{spl_object_hash($thread)} = $thread;
$this->{$thread->getThreadId()} = $thread;
}
}
@ -51,7 +51,7 @@ class ThreadManager extends \Volatile{
*/
public function remove($thread){
if($thread instanceof Thread or $thread instanceof Worker){
unset($this->{spl_object_hash($thread)});
unset($this->{$thread->getThreadId()});
}
}