X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fsession.hpp;h=f2f8c7c8e26549be7e6ba8a5e5977c3faf6b10f2;hb=3e8a7cc6af5558a249c114b1609ececa2a381774;hp=59060a591fdfd0d743ad83780dbcd066cdefbc01;hpb=b48daed65bff5da5fddc6db11377b8730220865f;p=pulseview.git diff --git a/pv/session.hpp b/pv/session.hpp index 59060a59..f2f8c7c8 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -31,15 +31,17 @@ #include #ifdef _WIN32 -// Windows: Avoid namespace pollution by thread.hpp (which includes windows.h). +// Windows: Avoid boost/thread namespace pollution (which includes windows.h). #define NOGDI #define NORESOURCE #endif -#include +#include #include #include +#include "util.hpp" + struct srd_decoder; struct srd_channel; @@ -114,9 +116,9 @@ public: std::set< std::shared_ptr > get_data() const; - boost::shared_mutex& signals_mutex() const; + double get_samplerate() const; - const std::unordered_set< std::shared_ptr >& + const std::unordered_set< std::shared_ptr > signals() const; #ifdef ENABLE_DECODE @@ -144,6 +146,8 @@ private: void feed_in_meta(std::shared_ptr meta); + void feed_in_trigger(); + void feed_in_frame_begin(); void feed_in_logic(std::shared_ptr logic); @@ -174,12 +178,16 @@ private: std::thread sampling_thread_; + bool out_of_memory_; + Q_SIGNALS: void capture_state_changed(int state); void device_selected(); void signals_changed(); + void trigger_event(util::Timestamp location); + void frame_began(); void data_received();