#include <IThreadPool.hpp>
|
| virtual void | add (const ThreadPoolTask &task)=0 |
| | Add a task for execution. More...
|
| |
| virtual void | awaitTermination (std::size_t seconds)=0 |
| | Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs. More...
|
| |
| virtual void | shutdown ()=0 |
| | Initiates a shutdown in which previously added tasks are executed, but no new tasks will be accepted. More...
|
| |
| virtual void | shutdownNow ()=0 |
| | Initiates a shutdown in which all executing tasks will complete. Pending tasks will be declined. More...
|
| |
| virtual | ~IThreadPool () |
| |
Definition at line 28 of file IThreadPool.hpp.
| virtual kaa::IThreadPool::~IThreadPool |
( |
| ) |
|
|
inlinevirtual |
Add a task for execution.
- Parameters
-
- Exceptions
-
| std::invalid_argument | The task object is invalid, i.e. empty. |
| std::logic_error | The thread pool is shut down. |
Implemented in kaa::ThreadPool.
| virtual void kaa::IThreadPool::awaitTermination |
( |
std::size_t |
seconds | ) |
|
|
pure virtual |
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs.
- Note
- Call only after shutdown().
- Parameters
-
| seconds | The maximum time in seconds to wait. |
- Exceptions
-
| std::logic_error | The method was called without shutdown(). |
Implemented in kaa::ThreadPool.
| virtual void kaa::IThreadPool::shutdown |
( |
| ) |
|
|
pure virtual |
Initiates a shutdown in which previously added tasks are executed, but no new tasks will be accepted.
Implemented in kaa::ThreadPool.
| virtual void kaa::IThreadPool::shutdownNow |
( |
| ) |
|
|
pure virtual |
Initiates a shutdown in which all executing tasks will complete. Pending tasks will be declined.
Implemented in kaa::ThreadPool.
The documentation for this class was generated from the following file:
- /home/architec/Documents/kaa/client/client-multi/client-cpp/kaa/utils/IThreadPool.hpp