]> sigrok.org Git - pulseview.git/blobdiff - pv/datasnapshot.h
Viewport: Allow horizontal scrolling via mouse wheel tilting
[pulseview.git] / pv / datasnapshot.h
index 221ebcd369ad1af839d4f2ffb0f6161035779f8f..2a6651e89ed85df6cd8bd238fb84c46cddd6aecd 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#ifndef PULSEVIEW_PV_DATASNAPSHOT_H
+#define PULSEVIEW_PV_DATASNAPSHOT_H
+
 extern "C" {
 #include <libsigrok/libsigrok.h>
 }
 
+#include <boost/thread.hpp>
+
 namespace pv {
 
 class DataSnapshot
@@ -37,9 +42,12 @@ protected:
        void append_data(void *data, uint64_t samples);
 
 protected:
+       mutable boost::recursive_mutex _mutex;
        void *_data;
        uint64_t _sample_count;
        int _unit_size;
 };
 
 } // namespace pv
+
+#endif // PULSEVIEW_PV_DATASNAPSHOT_H