[Qt-interest] understanding QNetworkAccessManager
Thiago Macieira
thiago.macieira at trolltech.com
Sat Aug 1 12:46:23 CEST 2009
Frank Mertens wrote:
> QNetworkReply *reply = manager->get(request); // <= request send here?
> connect(reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
> connect(reply, SIGNAL(error(QNetworkReply::NetworkError)),
> this, SLOT(slotError(QNetworkReply::NetworkError)));
> connect(reply, SIGNAL(sslErrors(QList<QSslError>)),
> this, SLOT(slotSslErrors(QList<QSslError>)));
>
>For me it looks like a bluntly presented race condition.
>I tried to figure out at which point exactly the request
>is send. Maybe I'm missing something. But is the request
>send somewhere in the GUI event loop?
Yes, it's sent in the event loop. So until you return to it, nothing
happens. There's no race condition above.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090801/2e8ee26c/attachment.bin
More information about the Qt-interest-old
mailing list