task クラスのインターフェイス

task クラスの一部のメソッドは、古いか、冗長な機能であるため推奨されていません。

task クラスの推奨されないメンバー

namespace tbb {
 class task {
 public:
 ...
 void recycle_to_reexecute();
 // タスクの深さ
 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 ){}
 ...
 };
 }
次の表は、このテンプレート・クラスのメンバーの詳細な情報を提供します。
メンバー 説明
void recycle _to_reexecute()

recycle_to_reexecute メソッドは冗長なため、インテル スレッディング・ビルディング・ブロック (インテル TBB) 3.0 で廃止されました。 t->recycle_to_reexecute() 呼び出しを次のシーケンスに置換してください。

t->set_refcount(1);
t->recycle_as_safe_continuation();
task クラス用の深さに関連したインターフェイス

インテル® TBB の以前のバージョンで使用されていた「タスクの深さ」という概念は、インテル® TBB 2.2 で排除されました。 深さに関連した task クラスのメンバーは、TBB_DEPRECATED 以下に残されていますが、何も行いません。