X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsession.hpp;h=f5c87f694f8e22a574307e7ae3568968423df9e8;hb=8e99ef9634a6c91d38e85c3fa7587a4ae22fcd2b;hp=d71b1d6cec3f267bab7044b52dd69d375a1987a3;hpb=627ffe3f3a5d0a8f38e35668bd4ed71321f09b91;p=pulseview.git diff --git a/pv/session.hpp b/pv/session.hpp index d71b1d6..f5c87f6 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_SIGSESSION_HPP -#define PULSEVIEW_PV_SIGSESSION_HPP +#ifndef PULSEVIEW_PV_SESSION_HPP +#define PULSEVIEW_PV_SESSION_HPP #include #include @@ -27,6 +27,7 @@ #include #include #include +#include #include #ifdef _WIN32 @@ -117,7 +118,8 @@ public: boost::shared_mutex& signals_mutex() const; - const std::vector< std::shared_ptr >& signals() const; + const std::unordered_set< std::shared_ptr >& + signals() const; #ifdef ENABLE_DECODE bool add_decoder(srd_decoder *const dec); @@ -171,7 +173,7 @@ private: capture_state capture_state_; mutable boost::shared_mutex signals_mutex_; - std::vector< std::shared_ptr > signals_; + std::unordered_set< std::shared_ptr > signals_; mutable std::mutex data_mutex_; std::shared_ptr logic_data_; @@ -197,4 +199,4 @@ Q_SIGNALS: } // namespace pv -#endif // PULSEVIEW_PV_SIGSESSION_HPP +#endif // PULSEVIEW_PV_SESSION_HPP