Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

tbb::parallel_invoke memberfunction

zweistein
Beginner
148 Views
Hello,
How can i call a memberfunction with parallel_invoke?
I need this:
tbb::parallel_invoke(
[]() { this->initPostConsequence() }
);
but this is not accessible.
0 Kudos
1 Reply
ARCH_R_Intel
Employee
148 Views

Try adding "this" to the capture list. E.g. [this]() { this->initPostConsequence() }

0 Kudos
Reply