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

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

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: