Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Template that can be used to implement exception that transfers arbitrary ExceptionData to the root thread. More...
#include <tbb_exception.h>
Public Member Functions | |
movable_exception (const ExceptionData &data_) | |
movable_exception (const movable_exception &src) throw () | |
~movable_exception () throw () | |
const movable_exception & | operator= (const movable_exception &src) |
ExceptionData & | data () throw () |
const ExceptionData & | data () const throw () |
const char * | name () const __TBB_override throw () |
Returns RTTI name of the originally intercepted exception. More... | |
const char * | what () const __TBB_override throw () |
Returns the result of originally intercepted exception's what() method. More... | |
movable_exception * | move () __TBB_override throw () |
Creates and returns pointer to the deep copy of this exception object. More... | |
void | destroy () __TBB_override throw () |
Destroys objects created by the move() method. More... | |
void | throw_self () __TBB_override |
Throws this exception object. More... | |
![]() | |
void | operator delete (void *p) |
Protected Attributes | |
ExceptionData | my_exception_data |
User data. More... | |
Private Types | |
typedef movable_exception< ExceptionData > | self_type |
Private Attributes | |
bool | my_dynamic |
Flag specifying whether this object has been dynamically allocated (by the move method) More... | |
const char * | my_exception_name |
RTTI name of this class. More... | |
Template that can be used to implement exception that transfers arbitrary ExceptionData to the root thread.
Code using TBB can instantiate this template with an arbitrary ExceptionData type and throw this exception object. Such exceptions are intercepted by the TBB scheduler and delivered to the root thread ().
Definition at line 247 of file tbb_exception.h.
|
private |
Definition at line 249 of file tbb_exception.h.
|
inline |
Definition at line 252 of file tbb_exception.h.
|
inline |
Definition at line 264 of file tbb_exception.h.
|
inline |
Definition at line 271 of file tbb_exception.h.
|
inline |
Definition at line 281 of file tbb_exception.h.
|
inline |
Definition at line 283 of file tbb_exception.h.
|
inlinevirtual |
Destroys objects created by the move() method.
Frees memory and calls destructor for this exception object. Can and must be used only on objects created by the move method.
Implements tbb::tbb_exception.
Definition at line 297 of file tbb_exception.h.
References __TBB_ASSERT, and tbb::internal::deallocate_via_handler_v3().
|
inlinevirtual |
Creates and returns pointer to the deep copy of this exception object.
Move semantics is allowed.
Implements tbb::tbb_exception.
Definition at line 289 of file tbb_exception.h.
References tbb::internal::allocate_via_handler_v3().
|
inlinevirtual |
Returns RTTI name of the originally intercepted exception.
Implements tbb::tbb_exception.
Definition at line 285 of file tbb_exception.h.
|
inline |
Definition at line 273 of file tbb_exception.h.
References tbb::movable_exception< ExceptionData >::my_exception_data, and tbb::movable_exception< ExceptionData >::my_exception_name.
|
inlinevirtual |
Throws this exception object.
Make sure that if you have several levels of derivation from this interface you implement or override this method on the most derived level. The implementation is as simple as "throw *this;". Failure to do this will result in exception of a base class type being thrown.
Implements tbb::tbb_exception.
Definition at line 304 of file tbb_exception.h.
References __TBB_THROW.
|
inlinevirtual |
Returns the result of originally intercepted exception's what() method.
Implements tbb::tbb_exception.
Definition at line 287 of file tbb_exception.h.
|
private |
Flag specifying whether this object has been dynamically allocated (by the move method)
Definition at line 312 of file tbb_exception.h.
|
protected |
User data.
Definition at line 308 of file tbb_exception.h.
Referenced by tbb::movable_exception< ExceptionData >::operator=().
|
private |
RTTI name of this class.
We rely on the fact that RTTI names are static string constants.
Definition at line 316 of file tbb_exception.h.
Referenced by tbb::movable_exception< ExceptionData >::operator=().