49 std::unique_ptr<Impl> impl;
57 Handle(std::shared_future<void> functionFinished);
67 const std::shared_future<void>&
getFuture()
const;
73 std::shared_ptr<std::mutex> mutex;
74 std::shared_future<void> functionFinished;
76 bool detached =
false;
80 ThreadPool(std::size_t pool_size,
bool queueTasks =
false);
87 Handle
runTask(std::function<
void()> task);
97 void wrap_task(std::function<
void() > task);