Interface for class task

Some methods of class task are deprecated because they have obsolete or redundant functionality.

Deprecated Members of class task

namespace tbb {
 class task {
 public:
 ...
 void recycle_to_reexecute();
 // task depth
 typedef implementation-defined-signed-integral-type depth_type;
 depth_type depth() const {return 0;}
 void set_depth( depth_type new_depth ) {}
 void add_to_depth( int delta ){}
 ...
 };
 }
The following table provides additional information on the members of this template class.
Member Description
void recycle _to_reexecute()

Intel(R) Threading Building Blocks (Intel® TBB) 3.0 deprecated method recycle_to_reexecute because it is redundant. Replace a call t->recycle_to_reexecute()with the following sequence:

t->set_refcount(1);
t->recycle_as_safe_continuation();
Depth interface for class task

Intel® TBB 2.2 eliminated the notion of task depth that was present in prior versions of Intel® TBB. The members of class task that related to depth have been retained under TBB_DEPRECATED, but do nothing.