virtual bool stop() noexcept=0
Waits for all already running tasks to complete, then stops every thread. Do not use threadpool after...
Interface for running tasks asynchronously.
Definition: IAsyncContext.h:24
virtual int8_t threads() const noexcept=0
Returns size of underlying thread pool.
virtual bool resize(const int8_t newThreadCount) noexcept=0
Resizes internal thread pool to some new size param newThreadCount New size of thread pool...
virtual bool valid() const noexcept=0
Tells validness of internal state.
virtual bool clearTaskQueue() noexcept=0
Clears tasks not yet taken by any thread.