STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection > Struct Template Reference
Inheritance diagram for Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >:
Concurrency::details::_PPLTaskHandle< _ReturnType, _InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >, details::_UnrealizedChore_t > Concurrency::details::_TaskProcHandle Concurrency::details::_UnrealizedChore Concurrency::details::_Chore Concurrency::details::_AllocBase

Public Member Functions

 _InitialTaskHandle (const typename details::_Task_ptr< _ReturnType >::_Type &_TaskImpl, const _Function &_func)
 
virtual ~_InitialTaskHandle ()
 
template<typename _Func >
auto _LogWorkItemAndInvokeUserLambda (_Func &&_func) const -> decltype(_func())
 
void _Perform () const
 
void _SyncCancelAndPropagateException () const
 
void _Init (details::_TypeSelectorNoAsync) const
 
void _Init (details::_TypeSelectorAsyncOperationOrTask) const
 
- Public Member Functions inherited from Concurrency::details::_PPLTaskHandle< _ReturnType, _InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >, details::_UnrealizedChore_t >
 _PPLTaskHandle (const typename _Task_ptr< _ReturnType >::_Type &_PTask)
 
virtual ~_PPLTaskHandle ()
 
virtual void invoke () const
 
_Task_ptr_base _GetTaskImplBase () const
 
- Public Member Functions inherited from Concurrency::details::_TaskProcHandle
 _TaskProcHandle ()
 
virtual ~_TaskProcHandle ()
 
void operator() () const
 
- Public Member Functions inherited from Concurrency::details::_UnrealizedChore
 _UnrealizedChore ()
 
virtual ~_UnrealizedChore ()
 
void _Invoke ()
 
void _SetDetached (bool _FDetached)
 
Concurrency::details::_TaskCollectionBase_OwningCollection () const
 
void _SetRuntimeOwnsLifetime (bool fValue)
 
bool _GetRuntimeOwnsLifetime () const
 
void _PrepareSteal (ContextBase *_PContext)
 
- Public Member Functions inherited from Concurrency::details::_AllocBase
voidoperator new (size_t _Size)
 
void operator delete (void *_Ptr) throw ()
 
voidoperator new (size_t _Size, const std::nothrow_t &) throw ()
 
void operator delete (void *_Ptr, const std::nothrow_t &) throw ()
 
voidoperator new[] (size_t _Size)
 
void operator delete[] (void *_Ptr) throw ()
 
voidoperator new[] (size_t _Size, const std::nothrow_t &_No_throw) throw ()
 
void operator delete[] (void *_Ptr, const std::nothrow_t &_No_throw) throw ()
 
voidoperator new (size_t, void *_Location) throw ()
 
void operator delete (void *, void *) throw ()
 
void *__cdecl operator new[] (size_t, void *_Location) throw ()
 
void __cdecl operator delete[] (void *, void *) throw ()
 

Public Attributes

_Function _M_function
 
- Public Attributes inherited from Concurrency::details::_PPLTaskHandle< _ReturnType, _InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >, details::_UnrealizedChore_t >
_Task_ptr< _ReturnType >::_Type _M_pTask
 
- Public Attributes inherited from Concurrency::details::_Chore
TaskProc m_pFunction
 

Additional Inherited Members

- Static Public Member Functions inherited from Concurrency::details::_TaskProcHandle
static void __cdecl _RunChoreBridge (void *_Parameter)
 
- Static Public Member Functions inherited from Concurrency::details::_UnrealizedChore
template<typename _ChoreType , typename _Function >
static _ChoreType * _InternalAlloc (const _Function &_Func)
 
- Protected Member Functions inherited from Concurrency::details::_UnrealizedChore
_CRTIMP void _CheckTaskCollection ()
 
- Protected Member Functions inherited from Concurrency::details::_Chore
 _Chore (TaskProc _PFunction)
 
 _Chore ()
 
virtual ~_Chore ()
 
- Static Protected Member Functions inherited from Concurrency::details::_UnrealizedChore
template<typename _ChoreType >
static void __cdecl _InvokeBridge (void *_PContext)
 

Constructor & Destructor Documentation

template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_InitialTaskHandle ( const typename details::_Task_ptr< _ReturnType >::_Type _TaskImpl,
const _Function &  _func 
)
inline
3654  : details::_PPLTaskHandle<_ReturnType, _InitialTaskHandle<_InternalReturnType, _Function, _TypeSelection>, details::_UnrealizedChore_t>::_PPLTaskHandle(_TaskImpl)
3655  , _M_function(_func)
3656  {
3657  }
_Function _M_function
Definition: ppltasks.h:3652
_TaskCollection_t::_TaskProcHandle_t _UnrealizedChore_t
Definition: ppltasks.h:1389
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
virtual Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::~_InitialTaskHandle ( )
inlinevirtual
3659 {}

Member Function Documentation

template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_Init ( details::_TypeSelectorNoAsync  ) const
inline
3684  {
3685  this->_M_pTask->_FinalizeAndRunContinuations(_LogWorkItemAndInvokeUserLambda(_Init_func_transformer<_InternalReturnType>::_Perform(_M_function)));
3686  }
_Function _M_function
Definition: ppltasks.h:3652
auto _LogWorkItemAndInvokeUserLambda(_Func &&_func) const -> decltype(_func())
Definition: ppltasks.h:3662
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_Init ( details::_TypeSelectorAsyncOperationOrTask  ) const
inline
3697  {
3698  details::_Task_impl_base::_AsyncInit<_ReturnType, _InternalReturnType>(this->_M_pTask, _LogWorkItemAndInvokeUserLambda(_M_function));
3699  }
_Function _M_function
Definition: ppltasks.h:3652
auto _LogWorkItemAndInvokeUserLambda(_Func &&_func) const -> decltype(_func())
Definition: ppltasks.h:3662
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
template<typename _Func >
auto Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_LogWorkItemAndInvokeUserLambda ( _Func &&  _func) const -> decltype(_func())
inline
3663  {
3664  details::_TaskWorkItemRAIILogger _LogWorkItem(this->_M_pTask->_M_taskEventLogger);
3665  return _func();
3666  }
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_Perform ( ) const
inline
3669  {
3670  _Init(_TypeSelection());
3671  }
void _Init(details::_TypeSelectorNoAsync) const
Definition: ppltasks.h:3683
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_SyncCancelAndPropagateException ( ) const
inline
3674  {
3675  this->_M_pTask->_Cancel(true);
3676  }

Member Data Documentation

template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
_Function Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_M_function

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