drop code oriented on the stream lock in parallel updates

This fact caused by the qt signal-slot implementation. Even if slots
code is going into parallel they will be called in the main app thread.
And also it is used inside KF5 dataengine implementation, so I'm affraid
that it could not be optimized w\o backend rewriting
This commit is contained in:
arcan1s
2015-10-13 01:49:12 +03:00
parent d3ab0a7228
commit 3be733a775
5 changed files with 16 additions and 83 deletions

View File

@ -23,8 +23,6 @@
#include <QObject>
class QTimer;
class AWDataEngineAggregator : public QObject
{
Q_OBJECT
@ -37,13 +35,9 @@ public:
void setInterval(const int _interval);
signals:
void startTimer();
void updateData(const QString sourceName, const QVariant value, const QString units);
public slots:
// additional methods to control this and visualization
void connectVisualization();
void disconnectVisualization();
void dropSource(const QString source);
void reconnectSources();
// data engines operations
@ -55,7 +49,6 @@ private:
void initDataEngines();
QHash<QString, Plasma::DataEngine *> m_dataEngines;
int m_interval;
QTimer *m_timer = nullptr;
};