STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
Concurrency::details::_Task_completion_event_impl< _ResultType > Struct Template Reference

#include <ppltasks.h>

Public Types

typedef std::vector< typename _Task_ptr< _ResultType >::_Type_TaskList
 

Public Member Functions

 _Task_completion_event_impl ()
 
bool _HasUserException ()
 
 ~_Task_completion_event_impl ()
 

Public Attributes

_TaskList _M_tasks
 
::Concurrency::extensibility::critical_section_t _M_taskListCritSec
 
_ResultHolder< _ResultType > _M_value
 
std::shared_ptr< _ExceptionHolder_M_exceptionHolder
 
bool _M_fHasValue
 
bool _M_fIsCanceled
 

Private Member Functions

 _Task_completion_event_impl (const _Task_completion_event_impl &)
 
_Task_completion_event_imploperator= (const _Task_completion_event_impl &)
 

Member Typedef Documentation

template<typename _ResultType >
typedef std::vector<typename _Task_ptr<_ResultType>::_Type> Concurrency::details::_Task_completion_event_impl< _ResultType >::_TaskList

Constructor & Destructor Documentation

template<typename _ResultType >
Concurrency::details::_Task_completion_event_impl< _ResultType >::_Task_completion_event_impl ( const _Task_completion_event_impl< _ResultType > &  )
private
template<typename _ResultType >
Concurrency::details::_Task_completion_event_impl< _ResultType >::_Task_completion_event_impl ( )
inline
2552  :
2553  _M_fHasValue(false), _M_fIsCanceled(false)
2554  {
2555  }
bool _M_fHasValue
Definition: ppltasks.h:2577
bool _M_fIsCanceled
Definition: ppltasks.h:2578
template<typename _ResultType >
Concurrency::details::_Task_completion_event_impl< _ResultType >::~_Task_completion_event_impl ( )
inline
2563  {
2564  for( auto _TaskIt = _M_tasks.begin(); _TaskIt != _M_tasks.end(); ++_TaskIt )
2565  {
2567  // Cancel the tasks since the event was never signaled or canceled.
2568  (*_TaskIt)->_Cancel(true);
2569  }
2570  }
bool _M_fHasValue
Definition: ppltasks.h:2577
#define _ASSERTE(expr)
Definition: crtdbg.h:216
_TaskList _M_tasks
Definition: ppltasks.h:2573
bool _M_fIsCanceled
Definition: ppltasks.h:2578

Member Function Documentation

template<typename _ResultType >
bool Concurrency::details::_Task_completion_event_impl< _ResultType >::_HasUserException ( )
inline
2558  {
2559  return _M_exceptionHolder != nullptr;
2560  }
std::shared_ptr< _ExceptionHolder > _M_exceptionHolder
Definition: ppltasks.h:2576
template<typename _ResultType >
_Task_completion_event_impl& Concurrency::details::_Task_completion_event_impl< _ResultType >::operator= ( const _Task_completion_event_impl< _ResultType > &  )
private

Member Data Documentation

template<typename _ResultType >
std::shared_ptr<_ExceptionHolder> Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_exceptionHolder
template<typename _ResultType >
bool Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_fHasValue
template<typename _ResultType >
bool Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_fIsCanceled
template<typename _ResultType >
::Concurrency::extensibility::critical_section_t Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_taskListCritSec
template<typename _ResultType >
_TaskList Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_tasks
template<typename _ResultType >
_ResultHolder<_ResultType> Concurrency::details::_Task_completion_event_impl< _ResultType >::_M_value

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