[Qt-interest] Trouble using a QTcpScoket in more then one thread
Thiago Macieira
thiago at kde.org
Tue Dec 1 08:40:11 CET 2009
Em Terça-feira 1. Dezembro 2009, às 04.39.17, Bill Reece escreveu:
> I would think sockets could be shared by different threads, but Qt seems to
> not like it. Any thoughts on the best way to do this without the warning
> messages is appreciated.
They cannot.
You can use QTcpSocket in different threads, but only one. Each QTcpSocket
object can be used in only one thread at any time and that's the thread it's
created in (or moved to).
--
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/20091201/127e6b29/attachment.bin
More information about the Qt-interest-old
mailing list