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

Thiago Macieira thiago at kde.org
Fri Jun 1 00:56:45 BST 2007


Andreas Pakulat wrote:
>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).

Protect it with a mutex or a RWLock.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070601/0638f04d/attachment.sig>


More information about the kde-core-devel mailing list