c++ - Intel TBB parallel loop thread id -
how determine thread id in tbb parallel loop body?
essentially need per-thread copies of object thought i'd have in array indexed thread id.
i'm looking portable tbb way of doing this, not os native services.
the search term looking "thread-local storage". since using tbb, should use facilities provides:
https://www.threadingbuildingblocks.org/docs/help/reference/thread_local_storage.htm
Comments
Post a Comment