The cancellation_token_registration
class represents a callback notification from a cancellation_token
. When the register
method on a cancellation_token
is used to receive notification of when cancellation occurs, a cancellation_token_registration
object is returned as a handle to the callback so that the caller can request a specific callback no longer be made through use of the deregister
method.
More...
#include <pplcancellation_token.h>
The cancellation_token_registration
class represents a callback notification from a cancellation_token
. When the register
method on a cancellation_token
is used to receive notification of when cancellation occurs, a cancellation_token_registration
object is returned as a handle to the callback so that the caller can request a specific callback no longer be made through use of the deregister
method.
Concurrency::cancellation_token_registration::cancellation_token_registration |
( |
| ) |
|
|
inline |
#define NULL
Definition: vcruntime.h:236
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
Concurrency::cancellation_token_registration::~cancellation_token_registration |
( |
| ) |
|
|
inline |
void _Clear()
Definition: pplcancellation_token.h:583
536 _Assign(_Src._M_pRegistration);
void _Assign(_In_ details::_CancellationTokenRegistration *_PRegistration)
Definition: pplcancellation_token.h:592
541 _Move(_Src._M_pRegistration);
void _Move(_In_ details::_CancellationTokenRegistration *&_PRegistration)
Definition: pplcancellation_token.h:601
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
594 if (_PRegistration !=
NULL)
596 _PRegistration->_Reference();
#define NULL
Definition: vcruntime.h:236
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
void Concurrency::cancellation_token_registration::_Clear |
( |
| ) |
|
|
inlineprivate |
#define NULL
Definition: vcruntime.h:236
long _Release()
Definition: pplcancellation_token.h:73
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
604 _PRegistration =
NULL;
#define NULL
Definition: vcruntime.h:236
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
bool operator==(const cancellation_token_registration &_Rhs) const
Definition: pplcancellation_token.h:564
549 _Assign(_Src._M_pRegistration);
void _Clear()
Definition: pplcancellation_token.h:583
void _Assign(_In_ details::_CancellationTokenRegistration *_PRegistration)
Definition: pplcancellation_token.h:592
559 _Move(_Src._M_pRegistration);
void _Move(_In_ details::_CancellationTokenRegistration *&_PRegistration)
Definition: pplcancellation_token.h:601
void _Clear()
Definition: pplcancellation_token.h:583
details::_CancellationTokenRegistration * _M_pRegistration
Definition: pplcancellation_token.h:607
The documentation for this class was generated from the following file: