[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]
Summary
List of task objects.
Syntax
class task_list;
Header
#include "tbb/task.h"
Description
A task_list is a list of references to task objects. The purpose of task_list is to allow a task to create a list of child tasks and spawn them all at once via the method task::spawn(task_list&), as described in 8.3.6.4.
A task can belong to at most one task_list at a time, and on that task_list at most once. A task that has been spawned, but not started running, must not belong to a task_list. A task_list cannot be copy-constructed or assigned.
Members
namespace tbb {
class task_list {
public:
task_list();
~task_list();
bool empty() const;
void push_back( task& task );
task& pop_front();
void clear();
};
}
Effects
Constructs an empty list.
Effects
Destroys the list. Does not destroy the task objects.
Returns
True if list is empty; false otherwise.
Effects
Inserts a reference to task at back of the list.
Effects
Removes a task reference from front of list.
Returns
[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]