From b3e2506153f9d204e94f94e4e590da54d17ccfdf Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Thu, 15 Aug 2024 09:39:17 -0400 Subject: [PATCH 1/2] chore: add brace to for loop --- include/thread_pool/thread_pool.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/thread_pool/thread_pool.h b/include/thread_pool/thread_pool.h index 14f841e..95485d5 100644 --- a/include/thread_pool/thread_pool.h +++ b/include/thread_pool/thread_pool.h @@ -250,7 +250,9 @@ namespace dp { */ size_t clear_tasks() { size_t removed_task_count{0}; - for (auto &task_list : tasks_) removed_task_count += task_list.tasks.clear(); + for (auto &task_list : tasks_) { + removed_task_count += task_list.tasks.clear(); + } in_flight_tasks_.fetch_sub(removed_task_count, std::memory_order_release); unassigned_tasks_.fetch_sub(removed_task_count, std::memory_order_release); From 1e989d091a2367de95e99cf422126c7b6d1f53ca Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Thu, 15 Aug 2024 09:39:24 -0400 Subject: [PATCH 2/2] build: update CPM.cmake version --- cmake/CPM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CPM.cmake b/cmake/CPM.cmake index 176748d..37550b6 100644 --- a/cmake/CPM.cmake +++ b/cmake/CPM.cmake @@ -1,4 +1,4 @@ -set(CPM_DOWNLOAD_VERSION 0.38.1) +set(CPM_DOWNLOAD_VERSION 0.40.2) if(CPM_SOURCE_CACHE) # Expand relative path. This is important if the provided path contains a tilde (~)