Fixed Generator Thread as specified on krakjoe/pthreads#349

This commit is contained in:
Shoghi Cervantes 2014-09-11 19:10:25 +02:00
parent dbd1f3f96e
commit d991c32435

View File

@ -275,7 +275,10 @@ class GenerationManager{
$this->shutdown = true;
}
}elseif(count($this->thread->getInternalQueue()) === 0){
$this->thread->synchronized(function(){
$this->thread->wait(50000);
});
}
}