public function push(Generic $thread)
    {
        $id = ++$this->spawnCounter;
        $thread->setId($id);
        $this->threads[$id] = $thread;
    }
public function push(Generic $thread)
    {
        $id = ++$this->spawnCounter;
        $thread->setId($id);
        $this->threads[$id] = $thread;
    }
public function push ( Generic $ thread ) { $ id = ++ $ this -> spawnCounter ; $ thread -> setId ( $ id ) ; $ this -> threads [ $ id ] = $ thread ; }
Pushes certain thread to the collection
@param Generic Generic to push
@return void
Pushes certain thread to the collection