Removed dead code and improve test coverage

This commit is contained in:
Bartek Kryza
2023-01-18 21:32:21 +01:00
parent 00b9321034
commit a9f793e407
30 changed files with 98 additions and 174 deletions

View File

@@ -25,15 +25,13 @@
namespace clanguml::util {
class thread_pool_executor {
public:
thread_pool_executor();
explicit thread_pool_executor(unsigned int pool_size);
thread_pool_executor(const thread_pool_executor &) = delete;
thread_pool_executor(thread_pool_executor &&) = delete;
thread_pool_executor &operator=(const thread_pool_executor &) = delete;
thread_pool_executor &operator=(thread_pool_executor &&) = delete;
explicit thread_pool_executor(unsigned int pool_size);
~thread_pool_executor();
std::future<void> add(std::function<void()> &&task);