次の方法で共有


cancellation_token_registration クラス

cancellation_token_registration のクラスは cancellation_tokenのコールバックの通知を表します。

class cancellation_token_registration;

メンバー

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

名前

Description

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

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

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

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

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

名前

Description

cancellation_token_registration::operator!= 演算子

cancellation_token_registration の 2 種類のオブジェクトが 2 台のキャンセル トークンの登録を表すかどうかを判断します。

cancellation_token_registration::operator= 演算子

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

cancellation_token_registration::operator== 演算子

cancellation_token_registration の 2 種類のオブジェクトが同じキャンセル トークンの登録を表すかどうかを判断します。

解説

キャンセルが発生したときに通知を受け取ること cancellation_tokenregister のメソッドを使用すると、 cancellation_token_registration のオブジェクトは、コールバックにハンドルとして deregister のメソッドを使用して、よって、特定のコールバックを要求するように戻ります。

cancellation_token_registration は、スマート ポインターのように動作し、値が安全で、効率的です。

継承階層

cancellation_token_registration

必要条件

ヘッダー: ppl.h

名前空間: の同時実行

参照

関連項目

concurrency 名前空間