Intel® Threading Building Blocks

Empty Tasks

You might need a task that does not do anything but wait for its children to complete. The header task.h defines class empty_task for this purpose. Its definition is as follows:



The methods described in this section may be concurrently invoked on the same vector as methods for concurrent growth. However, the returned reference may be to an element that is being concurrently constructed.



Perform computations on items in a data set, where the computation on an item uses results from computations on predecessor items.


The dependences between computations form an acyclic graph.

Intel® Threading Building Blocks abonnieren