X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fstoresession.h;h=83664274b553348ddc459e3a7101762f40a659a5;hb=e9213170687cf4afd14e20acdc690ff9381d94ae;hp=5ef92a33f49d9df39b88bf66d20d9c92a3e9f4f0;hpb=0fbda3c2dda9357776afa15e99c037eb0cc97214;p=pulseview.git diff --git a/pv/storesession.h b/pv/storesession.h index 5ef92a3..8366427 100644 --- a/pv/storesession.h +++ b/pv/storesession.h @@ -23,9 +23,10 @@ #include +#include +#include #include - -#include +#include #include @@ -50,7 +51,7 @@ public: ~StoreSession(); - std::pair progress() const; + std::pair progress() const; const QString& error() const; @@ -61,20 +62,22 @@ public: void cancel(); private: - void store_proc(boost::shared_ptr snapshot); + void store_proc(std::shared_ptr snapshot); -signals: +Q_SIGNALS: void progress_updated(); private: const std::string _file_name; const SigSession &_session; - boost::thread _thread; + std::thread _thread; + + std::atomic _interrupt; + + std::atomic _units_stored, _unit_count; - mutable boost::mutex _mutex; - uint64_t _units_stored; - uint64_t _unit_count; + mutable std::mutex _mutex; QString _error; };