STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Concurrency::details::_ExceptionHolder Struct Reference

#include <ppltasks.h>

Public Member Functions

 _ExceptionHolder (const std::exception_ptr &_E, const _TaskCreationCallstack &_stackTrace)
 
 __declspec (noinline)~_ExceptionHolder()
 
void _RethrowUserException ()
 

Public Attributes

atomic_long _M_exceptionObserved
 
std::exception_ptr _M_stdException
 
_TaskCreationCallstack _M_stackTrace
 

Private Member Functions

_CRTIMP2 void __thiscall ReportUnhandledError ()
 

Constructor & Destructor Documentation

Concurrency::details::_ExceptionHolder::_ExceptionHolder ( const std::exception_ptr &  _E,
const _TaskCreationCallstack _stackTrace 
)
inlineexplicit
738  :
740  {
741  }
_TaskCreationCallstack _M_stackTrace
Definition: ppltasks.h:776
atomic_long _M_exceptionObserved
Definition: ppltasks.h:767
std::exception_ptr _M_stdException
Definition: ppltasks.h:770

Member Function Documentation

Concurrency::details::_ExceptionHolder::__declspec ( noinline  )
inline
745  {
746  if (_M_exceptionObserved == 0)
747  {
748  // If you are trapped here, it means an exception thrown in task chain didn't get handled.
749  // Please add task-based continuation to handle all exceptions coming from tasks.
750  // this->_M_stackTrace keeps the creation callstack of the task generates this exception.
752  }
753  }
#define _REPORT_PPLTASK_UNOBSERVED_EXCEPTION()
Definition: pplwin.h:125
atomic_long _M_exceptionObserved
Definition: ppltasks.h:767
void Concurrency::details::_ExceptionHolder::_RethrowUserException ( )
inline
756  {
757  if (_M_exceptionObserved == 0)
758  {
760  }
761 
763  }
_T atomic_exchange(std::atomic< _T > &_Target, _T _Value)
Definition: pplinterface.h:246
atomic_long _M_exceptionObserved
Definition: ppltasks.h:767
std::exception_ptr _M_stdException
Definition: ppltasks.h:770
void rethrow_exception(_In_ exception_ptr _Ptr)
Definition: exception:371
_CRTIMP2 void __thiscall Concurrency::details::_ExceptionHolder::ReportUnhandledError ( )
private

Member Data Documentation

atomic_long Concurrency::details::_ExceptionHolder::_M_exceptionObserved
_TaskCreationCallstack Concurrency::details::_ExceptionHolder::_M_stackTrace
std::exception_ptr Concurrency::details::_ExceptionHolder::_M_stdException

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