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 () | |
const movable_exception & | operator= (const movable_exception &src) |
ExceptionData & | data () throw () |
const ExceptionData & | data () const throw () |
const char * | name () const throw () |
Returns RTTI name of the originally intercepted exception. | |
const char * | what () const throw () |
Returns the result of originally intercepted exception's what() method. | |
movable_exception * | move () throw () |
Creates and returns pointer to the deep copy of this exception object. More... | |
void | destroy () throw () |
Destroys objects created by the move() method. More... | |
void | throw_self () |
Throws this exception object. More... | |
Public Member Functions inherited from tbb::tbb_exception | |
void | operator delete (void *p) |
Protected Attributes | |
ExceptionData | my_exception_data |
User data. | |
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 ().
|
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.
|
inlinevirtual |
Creates and returns pointer to the deep copy of this exception object.
Move semantics is allowed.
Implements tbb::tbb_exception.
|
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.