Intel® Threading Building Blocks

Bucket Interface

The bucket interface is similar to the bucket interface for the C++11 class unordered_set and unordered_multiset, except that the prefix unsafe_ has been added as a reminder that the methods are unsafe to use during concurrent insertion.

Thread Local Storage

Intel® Threading Building Blocks (Intel® TBB) provides two template classes for thread local storage. Both provide a thread-local element per thread. Both lazily create the elements on demand. They differ in their intended use models:


A task is a quantum of work that is cancelled or executes to completion. A cancelled task skips its method execute() if that method has not yet started. Otherwise cancellation has no direct effect on the task. A task can poll task::is_cancelled() to see if cancellation was requested after it started running.

Subscribe to Intel® Threading Building Blocks