Intel® Threading Building Blocks (Intel® TBB) 3.0 introduces a header tbb/compat/thread that defines class std::thread. Prior versions had a header tbb/tbb_thread.h that defined class tbb_thread. The old header and names are still available, but deprecated in favor of the replacements shown in Table 48.
Entity |
Deprecated |
Replacement |
---|---|---|
Header |
tbb/tbb_thread.h |
tbb/compat/thread |
Identifiers |
tbb::tbb_thread |
std::thread |
tbb::this_tbb_thread |
std::this_thread |
|
tbb::this_tbb_thread::sleep |
std::this_tbb_thread::sleep_for |
Most of the changes reflect a change in the way that the library implements C++11 features (std namespace). The change from sleep to sleep_for reflects a change in the C++11 working draft.