mirror of
https://github.com/anope/anope.git
synced 2026-06-30 19:26:38 +02:00
Use unique_ptr for managing std::thread ownership.
This commit is contained in:
@@ -26,7 +26,7 @@ private:
|
||||
|
||||
public:
|
||||
/* Handle for this thread */
|
||||
std::thread *handle = nullptr;
|
||||
std::unique_ptr<std::thread> handle;
|
||||
|
||||
/** Threads destructor
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user