From 97b65b2255d538ed8a45d82d64452723d24d5753 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 25 Feb 2024 21:54:40 +0000 Subject: Use unique_ptr for managing std::thread ownership. --- include/threadengine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/threadengine.h') diff --git a/include/threadengine.h b/include/threadengine.h index b240c1bbf..79cca6c61 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -26,7 +26,7 @@ private: public: /* Handle for this thread */ - std::thread *handle = nullptr; + std::unique_ptr handle; /** Threads destructor */ -- cgit