From 884e95cc985ccf3a7d9de9ebe0d9b1bbd2d9e706 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 24 Mar 2010 22:21:09 +0000 Subject: 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 --- src/versioncontrol/updateitemstatesthread.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/versioncontrol/updateitemstatesthread.h') 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 m_itemStates; }; -- cgit v1.3