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 -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -