Web lists-archives.org

Re: KDE, Qt3 and Amarok




Bart Van Assche wrote:
>I'm neither a Qt nor a KDE expert. Can you please have a look at the
>program below and tell me whether or not the programming style is
>acceptable ? The program below triggers several data races with Qt3,
>but does not trigger any data races with Qt4.

The program is wrong.

Qt 3 *requires* you to make a deep copy of the QString using QDeepCopy 
(see http://doc.trolltech.com/3.3/qdeepcopy.html) before passing it to 
another thread.

That's what Amarok is failing to do.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<