An operation is a functor used to define single portions of work to be dispatched to a single queue. More...
Public Member Functions | |
operation () | |
virtual | ~operation () |
virtual void | operator() ()=0 |
virtual void | set_auto_delete (bool a) |
Change the auto_delete flag to prevent the iteration from being deleted after finishing its execution. | |
virtual bool | auto_delete () |
An operation is a functor used to define single portions of work to be dispatched to a single queue.
Derive from this class and implement the operator to create specific operations that can be executed on a queue.
xdispatch::operation::operation | ( | ) | [inline] |
virtual xdispatch::operation::~operation | ( | ) | [inline, virtual] |
virtual bool xdispatch::operation::auto_delete | ( | ) | [inline, virtual] |
virtual void xdispatch::operation::operator() | ( | ) | [pure virtual] |
Implemented in xdispatch::ptr_operation< T >, and xdispatch::block_operation.
virtual void xdispatch::operation::set_auto_delete | ( | bool | a | ) | [inline, virtual] |
Change the auto_delete flag to prevent the iteration from being deleted after finishing its execution.
Defaults to true