We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0557d commit f14f97dCopy full SHA for f14f97d
cmake/CPM.cmake
@@ -1,4 +1,4 @@
1
-set(CPM_DOWNLOAD_VERSION 0.38.1)
+set(CPM_DOWNLOAD_VERSION 0.40.2)
2
3
if(CPM_SOURCE_CACHE)
4
# Expand relative path. This is important if the provided path contains a tilde (~)
include/thread_pool/thread_pool.h
@@ -250,7 +250,9 @@ namespace dp {
250
*/
251
size_t clear_tasks() {
252
size_t removed_task_count{0};
253
- for (auto &task_list : tasks_) removed_task_count += task_list.tasks.clear();
+ for (auto &task_list : tasks_) {
254
+ removed_task_count += task_list.tasks.clear();
255
+ }
256
in_flight_tasks_.fetch_sub(removed_task_count, std::memory_order_release);
257
unassigned_tasks_.fetch_sub(removed_task_count, std::memory_order_release);
258
0 commit comments