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
737  :
739  {
740  }
_TaskCreationCallstack _M_stackTrace
Definition: ppltasks.h:775
atomic_long _M_exceptionObserved
Definition: ppltasks.h:766
std::exception_ptr _M_stdException
Definition: ppltasks.h:769

Member Function Documentation

Concurrency::details::_ExceptionHolder::__declspec ( noinline  )
inline
744  {
745  if (_M_exceptionObserved == 0)
746  {
747  // If you are trapped here, it means an exception thrown in task chain didn't get handled.
748  // Please add task-based continuation to handle all exceptions coming from tasks.
749  // this->_M_stackTrace keeps the creation callstack of the task generates this exception.
751  }
752  }
#define _REPORT_PPLTASK_UNOBSERVED_EXCEPTION()
Definition: pplwin.h:125
atomic_long _M_exceptionObserved
Definition: ppltasks.h:766
void Concurrency::details::_ExceptionHolder::_RethrowUserException ( )
inline
755  {
756  if (_M_exceptionObserved == 0)
757  {
759  }
760 
762  }
_T atomic_exchange(std::atomic< _T > &_Target, _T _Value)
Definition: pplinterface.h:246
atomic_long _M_exceptionObserved
Definition: ppltasks.h:766
std::exception_ptr _M_stdException
Definition: ppltasks.h:769
void rethrow_exception(_In_ exception_ptr _Ptr)
Definition: exception:364
_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: