summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-25 21:54:40 +0000
committerSadie Powell <sadie@witchery.services>2024-02-25 21:54:40 +0000
commit97b65b2255d538ed8a45d82d64452723d24d5753 (patch)
treee3d66b2b45b6ae3c9b79ea411e0a0eae7a5c4b9e /include
parentb26f198489186e9f53aa79bab3c093d8fafce230 (diff)
Use unique_ptr for managing std::thread ownership.
Diffstat (limited to 'include')
-rw-r--r--include/threadengine.h2
1 files changed, 1 insertions, 1 deletions
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<std::thread> handle;
/** Threads destructor
*/