Intel® Threading Building Blocks

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.

Modifiers

The following tables provides additional information on the members of the concurrent_unordered_set and concurrent_unordered_multiset template classes.

Iterators

Template class enumerable_thread_specific supports random access iterators, which enable iteration over the set of all elements in the container.

Mutex Concept

The mutexes and locks here have relatively spartan interfaces that are designed for high performance. The interfaces enforce the scoped locking pattern, which is widely used in C++ libraries because:

订阅 Intel® Threading Building Blocks