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

#include <pplawait.h>

Classes

class  _Callback
 
class  _CallbackChain
 
class  ThreadpoolContext
 

Public Member Functions

template<typename _Ty >
auto get_awaitable (_Ty _Awaitable)
 
auto get_awaitable ()
 

Static Public Member Functions

static await_resume_context current ()
 
static await_resume_context any ()
 

Private Attributes

details::_ContextCallback _M_context
 
ThreadpoolContext _M_defaultContext
 

Member Function Documentation

static await_resume_context Concurrency::await_resume_context::any ( )
inlinestatic
239  {
240  return await_resume_context{};
241  }
static await_resume_context Concurrency::await_resume_context::current ( )
inlinestatic
232  {
233  await_resume_context _Context;
234  _Context._M_context = details::_ContextCallback::_CaptureCurrent();
235  return _Context;
236  }
static _ContextCallback _CaptureCurrent()
Definition: ppltasks.h:502
template<typename _Ty >
auto Concurrency::await_resume_context::get_awaitable ( _Ty  _Awaitable)
inline
311  {
312  return _CallbackChain<std::decay_t<_Ty>>(_Awaitable, this);
313  }
auto Concurrency::await_resume_context::get_awaitable ( )
inline
316  {
317  return _Callback(this);
318  }

Member Data Documentation

details::_ContextCallback Concurrency::await_resume_context::_M_context
private
ThreadpoolContext Concurrency::await_resume_context::_M_defaultContext
private

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