Added synchronization to GenerationThread::pushMainToThreadPacket()