| 5 | namespace generator |
| 6 | { |
| 7 | TranslatorsPool::TranslatorsPool(std::shared_ptr<TranslatorInterface> const & original, size_t threadCount) |
| 8 | : m_threadPool(threadCount) |
| 9 | { |
| 10 | CHECK_GREATER_OR_EQUAL(threadCount, 1, ()); |
| 11 | |
| 12 | m_translators.Push(original); |
| 13 | for (size_t i = 1; i < threadCount; ++i) |
| 14 | m_translators.Push(original->Clone()); |
| 15 | } |
| 16 | |
| 17 | void TranslatorsPool::Emit(std::vector<OsmElement> && elements) |
| 18 | { |