20 #include <condition_variable> 94 std::map<std::thread::id, std::thread>
running_;
std::deque< Func > enqueued_
std::condition_variable controlc_
void controlLaunchEnqueuedTasks()
static std::shared_ptr< ThreadFactory > newDefaultThreadFactory()
ThreadedExecutor & operator=(ThreadedExecutor const &)=delete
—— Concurrent Priority Queue Implementation ——
std::deque< std::thread::id > finished_
std::shared_ptr< ThreadFactory > threadFactory_
void add(Func func) override
~ThreadedExecutor() override
std::atomic< bool > stopping_
std::map< std::thread::id, std::thread > running_
void controlJoinFinishedThreads()
ThreadedExecutor(std::shared_ptr< ThreadFactory > threadFactory=newDefaultThreadFactory())