Added synchronization to GenerationThread::pushMainToThreadPacket()

This commit is contained in:
Shoghi Cervantes 2014-09-11 19:18:14 +02:00
parent d991c32435
commit b5deae7ba0

View File

@ -53,7 +53,9 @@ class GenerationThread extends Thread{
public function pushMainToThreadPacket($str){
$this->internalQueue[] = $str;
$this->notify();
$this->synchronized(function(){
$this->notify();
});
}
public function readMainToThreadPacket(){