Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
+2
-2
@@ -68,7 +68,7 @@ TaskGroup<Tp, Arg, MaxDepth>::~TaskGroup()
|
||||
if(m_tbb_task_group)
|
||||
{
|
||||
auto* _arena = m_pool->get_task_arena();
|
||||
_arena->execute([=]() { m_tbb_task_group->wait(); });
|
||||
_arena->execute([this]() { this->m_tbb_task_group->wait(); });
|
||||
}
|
||||
delete m_tbb_task_group;
|
||||
this->clear();
|
||||
@@ -95,7 +95,7 @@ TaskGroup<Tp, Arg, MaxDepth>::wait()
|
||||
if(m_tbb_task_group)
|
||||
{
|
||||
auto* _arena = m_pool->get_task_arena();
|
||||
_arena->execute([=]() { m_tbb_task_group->wait(); });
|
||||
_arena->execute([this]() { this->m_tbb_task_group->wait(); });
|
||||
}
|
||||
} };
|
||||
|
||||
|
||||
+1
-1
@@ -355,7 +355,7 @@ ThreadPool::run_on_this(task_pointer&& _task)
|
||||
if(m_tbb_tp && m_tbb_task_group)
|
||||
{
|
||||
auto _arena = get_task_arena();
|
||||
_arena->execute([=]() { m_tbb_task_group->run(_func); });
|
||||
_arena->execute([this, _func]() { this->m_tbb_task_group->run(_func); });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user