8 std::unique_ptr<Impl> impl;
11 LLAPI
explicit ThreadPoolExecutor(std::string name,
size_t nThreads = 1);
13 LLAPI ~ThreadPoolExecutor()
override;
15 LLAPI
void resize(
size_t nThreads = 1);
18 LLAPI
void execute(std::function<
void()>)
const override;
20 LLAPI std::shared_ptr<data::CancellableCallback> executeAfter(std::function<
void()>, Duration)
const override;
22 LLNDAPI
static ThreadPoolExecutor
const& getDefault();