[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

@@ -77,7 +77,7 @@ class ScreenCapturerX11 : public ScreenCapturer {
struct SwsContext *img_convert_ctx_ = nullptr;
// thread
std::unique_ptr<std::thread> capture_thread_ = nullptr;
std::thread capture_thread_;
std::atomic_bool running_;
};