[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KDE, Qt3 and Amarok
From:       "Bart Van Assche" <bart.vanassche () gmail ! com>
Date:       2008-04-21 8:32:07
Message-ID: e2e108260804210132y5efbebe8i554a7fecec33a98e () mail ! gmail ! com
[Download RAW message or body]

On Mon, Apr 21, 2008 at 10:21 AM, Thiago Macieira <thiago@kde.org> wrote:
> Bart Van Assche wrote:
>  >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.

I read and understood your statement about QDeepCopy. The second
example I provided does not explicitly share any QString objects over
threads. What was misleading in my example is that &S1 was passed as
the fourth argument of pthread_create(), while thread_func() does not
use this pointer. The fourth argument of pthread_create() should have
been NULL.

Bart.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic