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
 
std::mutex _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
2268  :
2269  _M_fHasValue(false), _M_fIsCanceled(false)
2270  {
2271  }
bool _M_fHasValue
Definition: ppltasks.h:2293
bool _M_fIsCanceled
Definition: ppltasks.h:2294
template<typename _ResultType >
Concurrency::details::_Task_completion_event_impl< _ResultType >::~_Task_completion_event_impl ( )
inline
2279  {
2280  for( auto _TaskIt = _M_tasks.begin(); _TaskIt != _M_tasks.end(); ++_TaskIt )
2281  {
2282  _ASSERTE(!_M_fHasValue && !_M_fIsCanceled);
2283  // Cancel the tasks since the event was never signaled or canceled.
2284  (*_TaskIt)->_Cancel(true);
2285  }
2286  }
bool _M_fHasValue
Definition: ppltasks.h:2293
_TaskList _M_tasks
Definition: ppltasks.h:2289
bool _M_fIsCanceled
Definition: ppltasks.h:2294

Member Function Documentation

template<typename _ResultType >
bool Concurrency::details::_Task_completion_event_impl< _ResultType >::_HasUserException ( )
inline
2274  {
2275  return _M_exceptionHolder != nullptr;
2276  }
std::shared_ptr< _ExceptionHolder > _M_exceptionHolder
Definition: ppltasks.h:2292
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 >
std::mutex 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: