mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] do not use smart pointer to manage std::thread objects
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user