#include <AbstractExecutor.h>
Inheritance diagram for AbstractExecutor:

Public Methods | |
| virtual | ~AbstractExecutor () throw () |
| virtual void | cancel () throw (Synchronization_Exception) |
| virtual bool | isCanceled () throw (Synchronization_Exception) |
| virtual bool | available () throw (Synchronization_Exception) |
Protected Types | |
| typedef Q | QueueType |
| Typedef. | |
| typedef L | LockType |
| Typedef. | |
Protected Methods | |
| AbstractExecutor () throw () | |
| virtual Thread * | createWorker ()=0 |
Protected Attributes | |
| QueueType | _queue |
| TaskQueue. | |
| LockType | _lock |
| Serialize access. | |
Any Executor can be extended and can override the createWorker() function to alter how the Work threads behave.
|
|
Protected default constructor |
|
|
Destroy this Executor |
|
|
Block until this executor has become available to run new tasks. This does not guarantee that another thread won't have submitted a task before some action is taken in response to this. However, it is useful as a general heuristic
Reimplemented in PoolExecutor. |
|
|
Stop the execution of additional tasks by this executor. After this method has be invoked then the Executor will completed when the last task it was previously assigned is completed.
Implements Executor. |
|
|
Create a new worker for the Executor, allows extedned classes to more easily special Worker objects w/o reimplementing the entire executor. Implemented in PoolExecutor. |
|
|
Check the cancelation status of this Executor
Implements Cancelable. |
1.2.15