[apaku at gmx.de: Threadsafe access to a KConfig object]

Andreas Pakulat apaku at gmx.de
Thu May 31 23:08:31 BST 2007


Hi,

forwarding the below message to this list too, as per suggestion from
Matt Rogers.

----- Forwarded message from Andreas Pakulat <apaku at gmx.de> -----

From: Andreas Pakulat <apaku at gmx.de>
To: KDE-Devel <kde-devel at kde.org>
Subject: Threadsafe access to a KConfig object
Mail-Followup-To: KDE-Devel <kde-devel at kde.org>
Reply-To: kde-devel at kde.org
List-Id: For discussion of all KDE-related development issues
	<kde-devel.kde.org>
List-Unsubscribe: <https://mail.kde.org/mailman/listinfo/kde-devel>,
	<mailto:kde-devel-request at kde.org?subject=unsubscribe>
List-Post: <mailto:kde-devel at kde.org>
List-Help: <mailto:kde-devel-request at kde.org?subject=help>
List-Subscribe: <https://mail.kde.org/mailman/listinfo/kde-devel>,
	<mailto:kde-devel-request at kde.org?subject=subscribe>

Hi,

we (that is the kdevelop developers) face a threading issue. Currently
the configuration of a Project that is loaded in KDevelop is made
available via a method that has this signature:

KSharedConfig::Ptr projectConfiguration() const;

However as far as we know its not safe to use this method from multiple
threads. The configuration is not changed in these threads, its just
read.

So we'd like to get some ideas as to how we can make the access to the
project configuration threadsafe, without letting each plugin know what
the config files are that are used to create the KConfig object (the
setup code should stay internal to the project class).

Andreas

----- End forwarded message -----

-- 
Your society will be sought by people of taste and refinement.




More information about the kde-core-devel mailing list