projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented a global decode lock to prevent concurrent decode
[pulseview.git]
/
pv
/
data
/
decoder.h
diff --git
a/pv/data/decoder.h
b/pv/data/decoder.h
index 09002ac911153ed06901af6ab1ba3e0927b1f4c7..b8608d2cc4290ed712722ba1e677e6383e96fb03 100644
(file)
--- a/
pv/data/decoder.h
+++ b/
pv/data/decoder.h
@@
-96,6
+96,15
@@
signals:
void new_decode_data();
private:
void new_decode_data();
private:
+
+ /**
+ * This mutex prevents more than one decode operation occuring
+ * concurrently.
+ * @todo A proper solution should be implemented to allow multiple
+ * decode operations.
+ */
+ static boost::mutex _global_decode_mutex;
+
const srd_decoder *const _decoder;
std::map<const srd_probe*, boost::shared_ptr<view::LogicSignal> >
_probes;
const srd_decoder *const _decoder;
std::map<const srd_probe*, boost::shared_ptr<view::LogicSignal> >
_probes;