]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Make ThreadPool non-copyable
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Oct 2025 20:33:40 +0000 (21:33 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 3 Nov 2025 20:03:30 +0000 (21:03 +0100)
src/ccache/util/threadpool.hpp

index 091a22cfa6c2ccdc4029c48cc3f6ec05c6d322fd..6c046ac6d9c0da195b97ce91ff04675b68455d52 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2024 Joel Rosdahl and other contributors
+// Copyright (C) 2019-2025 Joel Rosdahl and other contributors
 //
 // See doc/authors.adoc for a complete list of contributors.
 //
@@ -18,6 +18,8 @@
 
 #pragma once
 
+#include <ccache/util/noncopyable.hpp>
+
 #include <condition_variable>
 #include <cstddef>
 #include <functional>
@@ -29,7 +31,7 @@
 
 namespace util {
 
-class ThreadPool
+class ThreadPool : util::NonCopyable
 {
 public:
   explicit ThreadPool(