thread: removed unused var
This commit is contained in:
@@ -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_));
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ private:
|
||||
std::condition_variable high_cond_;
|
||||
|
||||
std::atomic_bool end_threadp_{false};
|
||||
std::atomic_int available_count_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user