#include <Executor.h>
Inheritance diagram for ZThread::Executor:
Public Member Functions | |
virtual void | interrupt ()=0 |
virtual void | execute (const Task &task)=0 |
Executing
Disabling
Interrupting
Waiting
virtual void ZThread::Executor::execute | ( | const Task & | task | ) | [pure virtual] |
Submit a task to this Executor.
task | Task to be run by a thread managed by this executor |
Cancellation_Exception | thrown if the Executor was canceled prior to the invocation of this function. |
Implemented in ZThread::ConcurrentExecutor, ZThread::PoolExecutor, ZThread::SynchronousExecutor, and ZThread::ThreadedExecutor.
virtual void ZThread::Executor::interrupt | ( | ) | [pure virtual] |
If supported by the Executor, interrupt all tasks submitted prior to the invocation of this function.
Implemented in ZThread::ConcurrentExecutor, ZThread::PoolExecutor, ZThread::SynchronousExecutor, and ZThread::ThreadedExecutor.