STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
Concurrency::await_resume_context::_Callback Class Reference

#include <pplawait.h>

Public Member Functions

 _Callback (await_resume_context *_ContextPtr)
 
bool await_ready ()
 
template<typename _Handle >
void await_suspend (_Handle _Hnd)
 
void await_resume ()
 

Private Attributes

await_resume_context_M_contextPtr
 

Constructor & Destructor Documentation

Concurrency::await_resume_context::_Callback::_Callback ( await_resume_context _ContextPtr)
inline
284 : _M_contextPtr(_ContextPtr) { }
await_resume_context * _M_contextPtr
Definition: pplawait.h:281

Member Function Documentation

bool Concurrency::await_resume_context::_Callback::await_ready ( )
inline
286 { return false; }
void Concurrency::await_resume_context::_Callback::await_resume ( )
inline
306 { }
template<typename _Handle >
void Concurrency::await_resume_context::_Callback::await_suspend ( _Handle  _Hnd)
inline
290  {
291  if (_M_contextPtr->_M_context == details::_ContextCallback())
292  {
294  _Hnd();
295  });
296  }
297  else
298  {
300  _Hnd();
301  });
302  }
303 
304  }
details::_ContextCallback _M_context
Definition: pplawait.h:227
await_resume_context * _M_contextPtr
Definition: pplawait.h:281
void _CallInContext(_Handle _Hnd)
Definition: pplawait.h:207
_CRTIMP2 void __thiscall _CallInContext(_CallbackFunction _Func, bool _IgnoreDisconnect) const
ThreadpoolContext _M_defaultContext
Definition: pplawait.h:228

Member Data Documentation

await_resume_context* Concurrency::await_resume_context::_Callback::_M_contextPtr
private

The documentation for this class was generated from the following file: