┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/versioncontrol/updateitemstatesthread.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-03-24 22:21:09 +0000
committerPeter Penz <[email protected]>2010-03-24 22:21:09 +0000
commit884e95cc985ccf3a7d9de9ebe0d9b1bbd2d9e706 (patch)
tree2b2d0153fba0cff234d8a486b6a9b4fabc75ada7 /src/versioncontrol/updateitemstatesthread.h
parentb28bec6710c1d1a90f04fb05e27ab4c1b2557231 (diff)
Version control: Move the maintainance of pending threads into a custom class. Also the UpdateItemStatesThread differs now between protecting the globally shared plugin and the locally shared data.
svn path=/trunk/KDE/kdebase/apps/; revision=1107125
Diffstat (limited to 'src/versioncontrol/updateitemstatesthread.h')
-rw-r--r--src/versioncontrol/updateitemstatesthread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/versioncontrol/updateitemstatesthread.h b/src/versioncontrol/updateitemstatesthread.h
index a687827c9..f99188014 100644
--- a/src/versioncontrol/updateitemstatesthread.h
+++ b/src/versioncontrol/updateitemstatesthread.h
@@ -54,9 +54,11 @@ protected:
virtual void run();
private:
- bool m_retrievedItems;
+ QMutex* m_globalPluginMutex; // Protects the m_plugin globally
KVersionControlPlugin* m_plugin;
- QMutex* m_mutex;
+
+ mutable QMutex m_itemMutex; // Protects m_retrievedItems and m_itemStates
+ bool m_retrievedItems;
QList<VersionControlObserver::ItemState> m_itemStates;
};