projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: Add boost-thread as explicit dependency.
[pulseview.git]
/
pv
/
datasnapshot.h
diff --git
a/pv/datasnapshot.h
b/pv/datasnapshot.h
index 221ebcd369ad1af839d4f2ffb0f6161035779f8f..2a6651e89ed85df6cd8bd238fb84c46cddd6aecd 100644
(file)
--- a/
pv/datasnapshot.h
+++ b/
pv/datasnapshot.h
@@
-18,10
+18,15
@@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* 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>
}
extern "C" {
#include <libsigrok/libsigrok.h>
}
+#include <boost/thread.hpp>
+
namespace pv {
class DataSnapshot
namespace pv {
class DataSnapshot
@@
-37,9
+42,12
@@
protected:
void append_data(void *data, uint64_t samples);
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
void *_data;
uint64_t _sample_count;
int _unit_size;
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_DATASNAPSHOT_H