cancellation_token_registration 类
cancellation_token_registration
类表示来自 cancellation_token
的回调通知。 如果 register
上的 cancellation_token
方法用于接收何时进行取消的通知,则系统就会将 cancellation_token_registration
对象作为回调的句柄返回,以便调用方可以请求特定回调,而不再通过使用 deregister
方法来实现。
语法
class cancellation_token_registration;
成员
公共构造函数
名称 | 描述 |
---|---|
cancellation_token_registration | |
~cancellation_token_registration 析构函数 |
公共运算符
“属性” | 描述 |
---|---|
operator!= | |
operator= | |
operator== |
继承层次结构
cancellation_token_registration
要求
标头:pplcancellation_token.h
命名空间: 并发
~cancellation_token_registration
~cancellation_token_registration();
cancellation_token_registration
cancellation_token_registration();
cancellation_token_registration(const cancellation_token_registration& _Src);
cancellation_token_registration(cancellation_token_registration&& _Src);
参数
_Src
要复制或移动的 cancellation_token_registration
。
operator!=
bool operator!= (const cancellation_token_registration& _Rhs) const;
参数
_Rhs
要比较的 cancellation_token_registration
。
返回值
operator=
cancellation_token_registration& operator= (const cancellation_token_registration& _Src);
cancellation_token_registration& operator= (cancellation_token_registration&& _Src);
参数
_Src
要分配的 cancellation_token_registration
。
返回值
operator==
bool operator== (const cancellation_token_registration& _Rhs) const;
参数
_Rhs
要比较的 cancellation_token_registration
。