420 bool _Synchronize =
false;
434 _PRegistration->_Release();
453 _PRegistration->_M_state,
483 std::unique_lock<std::mutex> _Lock(_PRegistration->_M_Mutex);
484 _PRegistration->_M_CondVar.wait(_Lock,
485 [_PRegistration]{
return _PRegistration->_M_signaled; });
487 _ASSERTE(_PRegistration->_M_signaled);
static const long _STATE_CALLED
Definition: pplcancellation_token.h:113
_T atomic_exchange(std::atomic< _T > &_Target, _T _Value)
Definition: pplinterface.h:246
static const long _STATE_DEFER_DELETE
Definition: pplcancellation_token.h:111
static const long _STATE_SYNCHRONIZE
Definition: pplcancellation_token.h:112
bool empty()
Definition: pplcancellation_token.h:258
_T atomic_compare_exchange(std::atomic< _T > &_Target, _T _Exchange, _T _Comparand)
Definition: pplinterface.h:238
void remove(_CancellationTokenRegistration *_Token)
Definition: pplcancellation_token.h:290
#define _ASSERTE(expr)
Definition: crtdbg.h:707
std::mutex _M_listLock
Definition: pplcancellation_token.h:502
TokenRegistrationContainer _M_registrations
Definition: pplcancellation_token.h:505
static const long _STATE_CLEAR
Definition: pplcancellation_token.h:110
_Result
Definition: corecrt_wconio.h:362