cancellation_token_registration 類別
cancellation_token_registration類別代表從回呼告知cancellation_token。
class cancellation_token_registration;
Members
公用建構函式
名稱 |
描述 |
---|---|
cancellation_token_registration::cancellation_token_registration 建構函式 |
多載。 建構 cancellation_token_registration 物件。 |
cancellation_token_registration::~cancellation_token_registration 解構函式 |
Destructs cancellation_token_registration物件。 |
公用運算子
名稱 |
描述 |
---|---|
判斷是否有兩個cancellation_token_registration物件代表兩個不同的取消通知語彙基元的登錄。 |
|
多載。 其中一個內容取代cancellation_token_registration與另一個物件。 |
|
判斷是否有兩個cancellation_token_registration物件代表相同的取消通知語彙基元的登錄。 |
備註
當您使用register上的方法cancellation_token接收通知的取消通知發生時, cancellation_token_registration為回呼的控制代碼,以便您可以要求特定的回呼不會再來完成的使用,物件會傳回deregister方法。
cancellation_token_registration的行為就像智慧型指標,而是安全又有效率傳值方式傳遞的周圍。
繼承階層架構
cancellation_token_registration
需求
標頭: ppl.h
Namespace: 並行存取