次の方法で共有


cancellation_token_source クラス

cancellation_token_source のクラスは、操作をキャンセル機能を表します。

class cancellation_token_source;

メンバー

Hh749985.collapse_all(ja-jp,VS.110).gifパブリック コンストラクター

名前

Description

cancellation_token_source::cancellation_token_source コンストラクター

オーバーロードされます。cancellation_token_source オブジェクトを構築します。

cancellation_token_source::~cancellation_token_source デストラクター

cancellation_token_source のオブジェクトを破棄します。

Hh749985.collapse_all(ja-jp,VS.110).gifパブリック メソッド

名前

Description

cancellation_token_source::cancel メソッド

関連付けられているトークン ソースとすべてのトークンを取り消します。

cancellation_token_source::create_linked_source メソッド

オーバーロードされます。入力トークンが取り消されるとキャンセル cancellation_token_source を作成します。

cancellation_token_source::get_token メソッド

このソースに関連付けられている cancellation_token を返します。

Hh749985.collapse_all(ja-jp,VS.110).gifパブリック演算子

名前

Description

cancellation_token_source::operator!= 演算子

cancellation_token_source の 2 種類のオブジェクトが 2 台のトークン ソースを表すかどうかを判断します。

cancellation_token_source::operator= 演算子

オーバーロードされます。別ので cancellation_token_source の 1 種類のオブジェクトの内容を置き換えます。

cancellation_token_source::operator== 演算子

cancellation_token_source の 2 種類のオブジェクトが同じトークン ソースを表すかどうかを判断します。

解説

cancellation_token_source でキャンセル可能な操作のキャンセルを要求するために使用できます。

すべての entity_CODEcancellation_token を取り消すようにこの cancellation_toekn_source に関連付けられている設定に キャンセル のメソッドを使用します。

cancellation_token_source は、スマート ポインターのように動作し、値を越えてが安全です。

継承階層

cancellation_token_source

必要条件

ヘッダー: ppl.h

名前空間: の同時実行

参照

関連項目

concurrency 名前空間