#define TBB_PREVIEW_AGGREGATOR 1
These are the basic guidelines regarding nodes and edges:
Avoid dynamic node removal
Adding edges and nodes is supported
Removing edges is supported
An example of a more advanced associative operation is to find the index where Foo(i) is minimized. A serial version might look like this:
Sometimes a thread must wait for an element v[i] that is being asynchronously added by another thread. The following idiom can be used for the wait:
This section provides some common parallel programming patterns and how to implement them in Intel® Threading Building Blocks (Intel® TBB).
The description of each pattern has the following format:
Problem – describes the problem to be solved.
Intel® Threading Building Blocks (Intel® TBB) can be mixed with other threading packages. No special effort is required to use any part of Intel® TBB with other threading packages.