projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix item dragging
[pulseview.git]
/
pv
/
logging.hpp
diff --git
a/pv/logging.hpp
b/pv/logging.hpp
index 0be270d488d4506cbc82db3fabbc9cfb81458585..28f2107437ec966cd2e6545dca9ade9aea469d5c 100644
(file)
--- a/
pv/logging.hpp
+++ b/
pv/logging.hpp
@@
-22,11
+22,15
@@
#include "globalsettings.hpp"
#include "globalsettings.hpp"
+#include <mutex>
+
#include <QtGlobal>
#include <QObject>
#include <QString>
#include <QStringList>
#include <QtGlobal>
#include <QObject>
#include <QString>
#include <QStringList>
+using std::mutex;
+
namespace pv {
class Logging : public QObject, public GlobalSettingsInterface
namespace pv {
class Logging : public QObject, public GlobalSettingsInterface
@@
-40,6
+44,7
@@
public:
LogSource_srd
};
LogSource_srd
};
+ static const int MIN_BUFFER_SIZE;
static const int MAX_BUFFER_SIZE;
public:
static const int MAX_BUFFER_SIZE;
public:
@@
-70,6
+75,7
@@
Q_SIGNALS:
private:
int buffer_size_;
QStringList buffer_;
private:
int buffer_size_;
QStringList buffer_;
+ mutable mutex log_mutex_;
};
extern Logging logging;
};
extern Logging logging;