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

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 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Concurrency::details::_TaskProcHandle
static void __cdecl _RunChoreBridge (void *_Parameter)
 

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
3454  : details::_PPLTaskHandle<_ReturnType, _InitialTaskHandle<_InternalReturnType, _Function, _TypeSelection>, details::_UnrealizedChore_t>::_PPLTaskHandle(_TaskImpl)
3455  , _M_function(_func)
3456  {
3457  }
_Function _M_function
Definition: ppltasks.h:3452
_TaskCollection_t::_TaskProcHandle_t _UnrealizedChore_t
Definition: ppltasks.h:1285
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
virtual Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::~_InitialTaskHandle ( )
inlinevirtual
3459 {}

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
3484  {
3485  this->_M_pTask->_FinalizeAndRunContinuations(_LogWorkItemAndInvokeUserLambda(_Init_func_transformer<_InternalReturnType>::_Perform(_M_function)));
3486  }
_Function _M_function
Definition: ppltasks.h:3452
auto _LogWorkItemAndInvokeUserLambda(_Func _func) const -> decltype(_func())
Definition: ppltasks.h:3462
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_Init ( details::_TypeSelectorAsyncOperationOrTask  ) const
inline
3497  {
3498  details::_Task_impl_base::_AsyncInit<_ReturnType, _InternalReturnType>(this->_M_pTask, _LogWorkItemAndInvokeUserLambda(_M_function));
3499  }
_Function _M_function
Definition: ppltasks.h:3452
auto _LogWorkItemAndInvokeUserLambda(_Func _func) const -> decltype(_func())
Definition: ppltasks.h:3462
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
3463  {
3464  details::_TaskWorkItemRAIILogger _LogWorkItem(this->_M_pTask->_M_taskEventLogger);
3465  return _func();
3466  }
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_Perform ( ) const
inline
3469  {
3470  _Init(_TypeSelection());
3471  }
void _Init(details::_TypeSelectorNoAsync) const
Definition: ppltasks.h:3483
template<typename _ReturnType>
template<typename _InternalReturnType , typename _Function , typename _TypeSelection >
void Concurrency::task< _ReturnType >::_InitialTaskHandle< _InternalReturnType, _Function, _TypeSelection >::_SyncCancelAndPropagateException ( ) const
inline
3474  {
3475  this->_M_pTask->_Cancel(true);
3476  }

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: