X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdatasnapshot.h;h=2a6651e89ed85df6cd8bd238fb84c46cddd6aecd;hp=221ebcd369ad1af839d4f2ffb0f6161035779f8f;hb=bc5c1a99be1dbbad5263ce9852f38b5c31ce1c4a;hpb=51e77110d4316fd0106f8306f5e1f0523c5bf7d7 diff --git a/pv/datasnapshot.h b/pv/datasnapshot.h index 221ebcd3..2a6651e8 100644 --- a/pv/datasnapshot.h +++ b/pv/datasnapshot.h @@ -18,10 +18,15 @@ * 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 } +#include + 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