[Interest] Using QNAM from threads

Thiago Macieira thiago.macieira at intel.com
Thu Jan 30 03:33:22 CET 2014


On quarta-feira, 29 de janeiro de 2014 21:45:47, phil.kursawe at gmail.com wrote:
> I have a sync thread that needs to read from a database and sends data to a
> server. The server response can be  very large. The sync thread should
> process them. I somehow fail to seem how I could decouple the background
> thread from the network stuff.

The main thread does the networking and receives all the data. *ALL* the data, 
no matter how big. Then it passes the data to the sync thread.

If the data is too big for memory, use QTemporaryFile. 

You cannot process the data as it comes from that other thread.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140129/b3383800/attachment.sig>


More information about the Interest mailing list