X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdatasnapshot.h;h=2a6651e89ed85df6cd8bd238fb84c46cddd6aecd;hb=4104d7f3fab3ab5422e7ceb9fdb40b944ca0ba92;hp=221ebcd369ad1af839d4f2ffb0f6161035779f8f;hpb=51e77110d4316fd0106f8306f5e1f0523c5bf7d7;p=pulseview.git diff --git a/pv/datasnapshot.h b/pv/datasnapshot.h index 221ebcd..2a6651e 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