[Qt-interest] sockets and threads on linux
Thiago Macieira
thiago at kde.org
Mon Feb 14 23:44:19 CET 2011
On Monday, 14 de February de 2011 19:43:34 Francisco Gonzalez wrote:
> In your implementation details both signal readyRead() and slot
> onReadyRead() are members of your MyTcpSocket class, so when you move the
> pSocket object to the QThread th, you are moving both the signal, and the
> processing function. I do not understand how can it improve the socket
> capability of processing, as both functions live in the same thread.
They have to. You can't read from the socket from outside its thread.
--
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/20110214/10fedaaf/attachment.bin
More information about the Qt-interest-old
mailing list