#include <AbstractExecutor.h>
Inheritance diagram for ZThread::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 | QUEUE |
Typedef. | |
typedef L | LOCK |
Typedef. | |
Protected Methods | |
AbstractExecutor () throw () | |
virtual Thread* | createWorker ()=0 |
Protected Attributes | |
QUEUE | _queue |
TaskQueue. | |
LOCK | _lock |
Serialize access. |
|
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 from ZThread::Executor. Reimplemented in ZThread::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.
Reimplemented from ZThread::Executor. |
|
Create a new worker for the Executor, allows extedned classes to more easily special Worker objects w/o reimplementing the entire executor. Reimplemented in ZThread::AsyncExecutor, and ZThread::PoolExecutor. |
|
Check the cancelation status of this Executor
Reimplemented from ZThread::Cancelable. |