diff --git a/app/threading/threadpool.cpp b/app/threading/threadpool.cpp index 8b33d72db..d65f6c574 100644 --- a/app/threading/threadpool.cpp +++ b/app/threading/threadpool.cpp @@ -29,7 +29,6 @@ ThreadPool::ThreadPool(unsigned threads, QObject *parent) : threads = std::thread::hardware_concurrency(); } - available_count_ = threads; for (unsigned i = 0; i < threads; i += 1) { worker_threads_.emplace_back(std::bind(&ThreadPool::thread_exec, this, &tasks_, &task_mutex_, &cond_)); } diff --git a/app/threading/threadpool.h b/app/threading/threadpool.h index 3c1143f55..e4dcb18e1 100644 --- a/app/threading/threadpool.h +++ b/app/threading/threadpool.h @@ -62,7 +62,6 @@ private: std::condition_variable high_cond_; std::atomic_bool end_threadp_{false}; - std::atomic_int available_count_; };