Re: KDE, Qt3 and Amarok
- Date: Mon, 21 Apr 2008 05:21:31 -0300
- From: Thiago Macieira <thiago@xxxxxxx>
- Subject: Re: KDE, Qt3 and Amarok
Bart Van Assche wrote: >> 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. > >Below you can find another sample program. When compiled and linked >against Qt3, it triggers data races. When compiled and linked against >Qt4, the program does not trigger any data races. Is the program OK or >not ? The program is still wrong. You did not read what I said: you MUST use QDeepCopy in Qt 3. And that class does not exist in Qt 4. >In case it wouldn't be immediately clear why the program triggers data >races with Qt3: this is because Qt3 implements empty strings via the >shared_null object, which is also reference counted. -- 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 <<
- Follow-Ups:
- Re: KDE, Qt3 and Amarok
- From: Bart Van Assche
- Re: KDE, Qt3 and Amarok
- References:
- KDE, Qt3 and Amarok
- From: Bart Van Assche
- Re: KDE, Qt3 and Amarok
- From: Thiago Macieira
- Re: KDE, Qt3 and Amarok
- From: Bart Van Assche
- KDE, Qt3 and Amarok
- Prev by Date: Re: Asymmertric shortcuts
- Next by Date: Re: KDE, Qt3 and Amarok
- Previous by thread: Re: KDE, Qt3 and Amarok
- Next by thread: Re: KDE, Qt3 and Amarok
- Index(es):