[Qt-interest] Demo Browser and Qt::Concurrent query
Nitin Mahajan
nitinm76 at yahoo.com
Wed Jan 20 08:18:44 CET 2010
Hello,
--- On Wed, 20/1/10, Thiago Macieira <thiago at kde.org> wrote:
> From: Thiago Macieira <thiago at kde.org>
> Subject: Re: [Qt-interest] Demo Browser and Qt::Concurrent query
> To: qt-interest at trolltech.com
> Cc: nitinm76 at yahoo.com
> Date: Wednesday, 20 January, 2010, 12:25 PM
> Em Quarta-feira 20. Janeiro 2010, às
> 06.27.42, Nitin Mahajan escreveu:
> > Am I missing something while using QtConcurrent or
> that is not the right
> > operation to be shifted to a new thread? Can I get
> some pointers towards
> > this?
>
> You're using it wrong there.
>
> You're using a QNetworkReply object from a thread that it
> doesn't belong to
> (that's not allowed) and you're doing GUI operations from a
> thread, which is
> also not allowed.
>
> You can open a file and write to it in a thread. But you
> may not do GUI and you
> may not read from the QNetworkReply in it.
>
Thanks for the inputs. Suppose I decide to do only the file write(No reading from QNetworkReply or No GUI ops) operation in a separate thread, in this particular case,
Whether spawning of threads very frequently would also result into overhead and inturn GUI drawing in main thread becomes slow?
regards
-Nitin
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT)
> kde.org
> Senior Product Manager - Nokia, Qt Development
> Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C
> 33F5 F005 6EF4 5358
>
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list