//#ifndef CAMERATHREAD_H
//#define CAMERATHREAD_H
//#include <functional>
//#include "XSDKPublic.h"
//#include "XNetSDKSyn.h"
//#include "XNetSDKDefine.h"
//#include <queue>
//#include <QThread>
//#include <mutex>
//#include <condition_variable>
//#include <atomic>

//using namespace std;
//class CameraThread : public QThread {
//    Q_OBJECT

//public:
//    CameraThread(QObject *parent = nullptr);
//    ~CameraThread();

//    typedef function<void()> Task;

//    void addTask(const Task &task);

//protected:
//    void run() override;

//private:
//    std::queue<Task> taskQueue;
//    std::mutex taskMutex;
//    std::condition_variable taskCondition;
//    std::atomic<bool> running{true};
//};

//#endif // CAMERATHREAD_H
