PoolExecutor Class Reference
#include <PoolExecutor.h>
Inheritance diagram for PoolExecutor:
Public Member Functions | |
PoolExecutor (size_t n) | |
virtual | ~PoolExecutor () |
Destroy a PoolExecutor. | |
virtual void | interrupt () |
void | size (size_t n) |
size_t | size () |
virtual void | execute (const Task &task) |
virtual void | cancel () |
virtual bool | isCanceled () |
virtual void | wait () |
virtual bool | wait (unsigned long timeout) |
Detailed Description
- Author:
- Eric Crahen <http://www.code-foo.com>
- Date:
- <2003-07-16T22:41:07-0400>
- Version:
- 2.3.0
- cancel()ing a PoolExecutor will cause it to stop accepting new tasks.
- interrupt()ing a PoolExecutor will cause the any thread running a task which was submitted prior to the invocation of this function to be interrupted during the execution of that task.
- wait()ing on a PoolExecutor will block the calling thread until all tasks that were submitted prior to the invocation of this function have completed.
- See also:
- Executor.
Constructor & Destructor Documentation
|
Create a PoolExecutor
|
Member Function Documentation
|
Implements Cancelable. |
|
Submit a task to this Executor. This will not block the calling thread very long. The submitted task will be executed at some later point by another thread.
Implements Executor. |
|
Invoking this function causes each task that had been submitted prior to this function to be interrupted. Tasks submitted after the invocation of this function are unaffected.
Implements Executor. |
|
Implements Cancelable. |
|
Get the current number of threads being used to execute submitted tasks.
|
|
Alter the number of threads being used to execute submitted tasks.
|
|
Block the calling thread until all tasks submitted prior to this invocation complete or until the calling thread is interrupted.
Implements Waitable. |
|
Block the calling thread until all tasks submitted prior to this invocation complete.
Implements Waitable. |
The documentation for this class was generated from the following file:
- PoolExecutor.h