Dear TBB experts,
I am now thinking of parallel efficient algorithm by using TBB.
Thus, I would like to prepare some pool data (std::vector container) per each thread in RAII phase,
and make each thread to access by their own id (thread id, I meant).
Currently, I initialized scheduler as tbb::task_scheduler.initialize(thread_num),
and prepared std::vector<PoolDataStructure> _pool(thread_num),
then, for accessing it, I use the return value of tbb::task_arena::current_thread_index() as their thread id.
Seemingly, it works well, but I wonder this is whether correct or not as specification.
(When I run the program based on the above, I encountered different numerical result with serial or parallel.
I am afraid that there is some data race due to the above implementation, or others)
I would appreciate it if you could consider it.