From 63e4c809ef6dbd790247166f4e72149fc9769856 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 27 Oct 2025 21:33:40 +0100 Subject: [PATCH] chore: Make ThreadPool non-copyable --- src/ccache/util/threadpool.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ccache/util/threadpool.hpp b/src/ccache/util/threadpool.hpp index 091a22cf..6c046ac6 100644 --- a/src/ccache/util/threadpool.hpp +++ b/src/ccache/util/threadpool.hpp @@ -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 + #include #include #include @@ -29,7 +31,7 @@ namespace util { -class ThreadPool +class ThreadPool : util::NonCopyable { public: explicit ThreadPool( -- 2.47.3