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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -