[Qt-interest] QNetworkAccessManager & 2 threads

Thiago Macieira thiago at kde.org
Fri Oct 15 18:06:42 CEST 2010


Em Sexta-feira 15 Outubro 2010, às 14:55:35, Andre Somers escreveu:
> But do I understand you correctly that it would not even be safe to pass a
> pointer to a QNetworkReply object after that object has emitted finished()
> in order to read the data it has to offer? I thought that at that point,
> QNAM is finished with it and it is up to the application to handle the
> reply and delete it afterwards. If that is the case, then what is the
> problem with passing that responsibility to another thread?

I wouldn't assume it's safe.

It might be in some implementations, but we may change that for optimisation 
purposes.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101015/5eb1aa5d/attachment.bin 


More information about the Qt-interest-old mailing list