Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

tbb::parallel_invoke memberfunction

zweistein
Beginner
107 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
107 Views

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

Reply