Added ThreadsQueue to PipelineExecutor.

This commit is contained in:
Nikolai Kochetov 2019-09-10 11:50:31 +03:00
parent 73bda85998
commit 72fea5bf97

View File

@ -661,6 +661,8 @@ void PipelineExecutor::executeImpl(size_t num_threads)
{
Stack stack;
threads_queue.init(num_threads);
executor_contexts.reserve(num_threads);
for (size_t i = 0; i < num_threads; ++i)
executor_contexts.emplace_back(std::make_unique<ExecutorContext>());