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

Public Member Functions

template<typename _Handle >
void _CallInContext (_Handle _Hnd)
 
 ThreadpoolContext ()
 
 ~ThreadpoolContext ()
 

Static Private Member Functions

static void __cdecl _ChoreCallback (void *_TpTask)
 

Private Attributes

details::_Threadpool_chore _M_chore
 
std::function< void()> _M_func
 

Constructor & Destructor Documentation

Concurrency::await_resume_context::ThreadpoolContext::ThreadpoolContext ( )
inline
216  {
217  _M_chore._M_work = nullptr;
218  }
void * _M_work
Definition: ppltaskscheduler.h:28
details::_Threadpool_chore _M_chore
Definition: pplawait.h:198
Concurrency::await_resume_context::ThreadpoolContext::~ThreadpoolContext ( )
inline
221  {
222  // Release chore multiple times is fine
224  }
_CRTIMP2 void __cdecl _Release_chore(_Threadpool_chore *)
details::_Threadpool_chore _M_chore
Definition: pplawait.h:198

Member Function Documentation

template<typename _Handle >
void Concurrency::await_resume_context::ThreadpoolContext::_CallInContext ( _Handle  _Hnd)
inline
208  {
209  _M_func = _Hnd;
211  _M_chore._M_data = this;
213  }
_Threadpool_callback _M_callback
Definition: ppltaskscheduler.h:29
std::function< void()> _M_func
Definition: pplawait.h:204
_CRTIMP2 int __cdecl _Schedule_chore(_Threadpool_chore *)
details::_Threadpool_chore _M_chore
Definition: pplawait.h:198
static void __cdecl _ChoreCallback(void *_TpTask)
Definition: pplawait.h:199
void * _M_data
Definition: ppltaskscheduler.h:30
static void __cdecl Concurrency::await_resume_context::ThreadpoolContext::_ChoreCallback ( void _TpTask)
inlinestaticprivate
200  {
201  auto _Context = static_cast<ThreadpoolContext*>(_TpTask);
202  _Context->_M_func();
203  }
_Check_return_ _In_z_ wchar_t const _Inout_opt_ _Deref_prepost_opt_z_ wchar_t ** _Context
Definition: corecrt_wstring.h:228

Member Data Documentation

details::_Threadpool_chore Concurrency::await_resume_context::ThreadpoolContext::_M_chore
private
std::function<void()> Concurrency::await_resume_context::ThreadpoolContext::_M_func
private

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