C++

Threads

Intel® Threading Building Blocks (Intel® TBB) provides a wrapper around the platform's native threads, based upon the C++11 standard. Using this wrapper has two benefits:

  • It makes threaded code portable across platforms.

  • It eases later migration to ISO C++11 threads.

Thread Safety

Unless otherwise stated, the thread safety rules for the library are as follows:

  • Two threads can invoke a method or function concurrently on different objects, but not the same object.

  • It is unsafe for two threads to invoke concurrently methods or functions on the same object.

订阅 C++