Skip to content

Commit f14f97d

Browse files
Minor updates (#70)
* chore: add brace to for loop * build: update CPM.cmake version
1 parent 9b0557d commit f14f97d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmake/CPM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(CPM_DOWNLOAD_VERSION 0.38.1)
1+
set(CPM_DOWNLOAD_VERSION 0.40.2)
22

33
if(CPM_SOURCE_CACHE)
44
# Expand relative path. This is important if the provided path contains a tilde (~)

include/thread_pool/thread_pool.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ namespace dp {
250250
*/
251251
size_t clear_tasks() {
252252
size_t removed_task_count{0};
253-
for (auto &task_list : tasks_) removed_task_count += task_list.tasks.clear();
253+
for (auto &task_list : tasks_) {
254+
removed_task_count += task_list.tasks.clear();
255+
}
254256
in_flight_tasks_.fetch_sub(removed_task_count, std::memory_order_release);
255257
unassigned_tasks_.fetch_sub(removed_task_count, std::memory_order_release);
256258

0 commit comments

Comments
 (0)