X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fsnapshot.h;h=fcb420c773e27a37359dcff4f2678b625764e73c;hb=5ad3b48b283738425949145182edc18edf6ea29e;hp=1f1ca3cf0b8539e7387c5211434123ce98ee42f4;hpb=27d7c96b57d967edd8bcde9bb5570d573a0ef474;p=pulseview.git diff --git a/pv/data/snapshot.h b/pv/data/snapshot.h index 1f1ca3c..fcb420c 100644 --- a/pv/data/snapshot.h +++ b/pv/data/snapshot.h @@ -23,7 +23,9 @@ #include -#include +#include +#include +#include namespace pv { namespace data { @@ -31,13 +33,13 @@ namespace data { class Snapshot { public: - Snapshot(int unit_size); + Snapshot(unsigned int unit_size); virtual ~Snapshot(); uint64_t get_sample_count() const; - int unit_size() const; + unsigned int unit_size() const; /** * @brief Increase the capacity of the snapshot. @@ -70,11 +72,11 @@ protected: void append_data(void *data, uint64_t samples); protected: - mutable boost::recursive_mutex _mutex; - void *_data; + mutable std::recursive_mutex _mutex; + std::vector _data; uint64_t _sample_count; uint64_t _capacity; - int _unit_size; + unsigned int _unit_size; }; } // namespace data