aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/locator/opendocumentsfilter.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-09-19 16:08:49 +0200
committerEike Ziller <eike.ziller@digia.com>2014-09-23 10:16:37 +0200
commit91239baaba07aec3a8ef1a559ef996bd3393e6cd (patch)
tree37fad7ecff4956af8fbf9523e9142fef780eae28 /src/plugins/coreplugin/locator/opendocumentsfilter.h
parentd6c73653ed14fb1401acec6f9a9f86888a3238e4 (diff)
Locator filters: Fix various thread-safety issues
Introduces a "prepareSearch" method for locator filters that is called on the UI thread prior to the threaded matching. Fix various small thread-safety issues in the various filters. Change-Id: If5ae7d205e126d367420936a93f8d9a84496edb8 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/coreplugin/locator/opendocumentsfilter.h')
-rw-r--r--src/plugins/coreplugin/locator/opendocumentsfilter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.h b/src/plugins/coreplugin/locator/opendocumentsfilter.h
index b16ca7144b..63c4944a80 100644
--- a/src/plugins/coreplugin/locator/opendocumentsfilter.h
+++ b/src/plugins/coreplugin/locator/opendocumentsfilter.h
@@ -34,9 +34,10 @@
#include <coreplugin/editormanager/documentmodel.h>
-#include <QString>
-#include <QList>
#include <QFutureInterface>
+#include <QList>
+#include <QMutex>
+#include <QString>
namespace Core {
namespace Internal {
@@ -55,6 +56,9 @@ public slots:
void refreshInternally();
private:
+ QList<Core::DocumentModel::Entry> editors() const;
+
+ mutable QMutex m_mutex;
QList<Core::DocumentModel::Entry> m_editors;
};