X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Flogging.hpp;h=28f2107437ec966cd2e6545dca9ade9aea469d5c;hp=0be270d488d4506cbc82db3fabbc9cfb81458585;hb=HEAD;hpb=348bae08c18c66974533dde20ba3c426e881f929 diff --git a/pv/logging.hpp b/pv/logging.hpp index 0be270d..28f2107 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;