17 #ifndef ITHREADPOOL_HPP_
18 #define ITHREADPOOL_HPP_
virtual void add(const ThreadPoolTask &task)=0
Add a task for execution.
std::shared_ptr< IThreadPool > IThreadPoolPtr
virtual void shutdown()=0
Initiates a shutdown in which previously added tasks are executed, but no new tasks will be accepted...
std::function< void()> ThreadPoolTask
virtual void shutdownNow()=0
Initiates a shutdown in which all executing tasks will complete. Pending tasks will be declined...
virtual void awaitTermination(std::size_t seconds)=0
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs...