Snapshot classes: Use vector instead of raw pointer
[pulseview.git] / pv / data / snapshot.h
index 1f1ca3cf0b8539e7387c5211434123ce98ee42f4..e4b9c0e812aaf7a7e0b3722d26a352997d02180b 100644 (file)
@@ -23,7 +23,9 @@
 
 #include <libsigrok/libsigrok.h>
 
-#include <boost/thread.hpp>
+#include <thread>
+#include <mutex>
+#include <vector>
 
 namespace pv {
 namespace data {
@@ -70,8 +72,8 @@ protected:
        void append_data(void *data, uint64_t samples);
 
 protected:
-       mutable boost::recursive_mutex _mutex;
-       void *_data;
+       mutable std::recursive_mutex _mutex;
+       std::vector<uint8_t> _data;
        uint64_t _sample_count;
        uint64_t _capacity;
        int _unit_size;