[fix] do not use smart pointer to manage std::thread objects

This commit is contained in:
dijunkun
2024-09-02 16:33:01 +08:00
parent 1e5bea2b1e
commit 74e29f25bf
9 changed files with 14 additions and 31 deletions

View File

@@ -32,7 +32,7 @@ class SpeakerCapturerLinux : public SpeakerCapturer {
private:
bool inited_ = false;
// thread
std::unique_ptr<std::thread> capture_thread_ = nullptr;
std::thread capture_thread_;
};
#endif

View File

@@ -32,7 +32,7 @@ class SpeakerCapturerMacosx : public SpeakerCapturer {
private:
bool inited_ = false;
// thread
std::unique_ptr<std::thread> capture_thread_ = nullptr;
std::thread capture_thread_;
};
#endif