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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -