From 6391ef4a7f3d681acb6d9db53a4b541c35faf685 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Fri, 10 Jun 2022 12:11:52 -0700 Subject: [PATCH] thread: removed unused var --- app/threading/threadpool.cpp | 1 - app/threading/threadpool.h | 1 - 2 files changed, 2 deletions(-) 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_; };