X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Flogging.hpp;h=28f2107437ec966cd2e6545dca9ade9aea469d5c;hp=0be270d488d4506cbc82db3fabbc9cfb81458585;hb=3c14f4df4128463f07a35b3dcf0767626d5982b1;hpb=348bae08c18c66974533dde20ba3c426e881f929 diff --git a/pv/logging.hpp b/pv/logging.hpp index 0be270d4..28f21074 100644 --- a/pv/logging.hpp +++ b/pv/logging.hpp @@ -22,11 +22,15 @@ #include "globalsettings.hpp" +#include + #include #include #include #include +using std::mutex; + namespace pv { class Logging : public QObject, public GlobalSettingsInterface @@ -40,6 +44,7 @@ public: LogSource_srd }; + static const int MIN_BUFFER_SIZE; static const int MAX_BUFFER_SIZE; public: @@ -70,6 +75,7 @@ Q_SIGNALS: private: int buffer_size_; QStringList buffer_; + mutable mutex log_mutex_; }; extern Logging logging;