c++ - Best way to get a query result -


I am developing an application that receives large images from an Internet server that most of the image download Good way, without freeze whole application? I mean background download I thought about downloading it in another thread.

Yes, you need to create another thread, network communication, and then when it's stopped reading , You can use an unstable bullian flag to indicate that the work is completed and the main / application can take thread data and include it. If you want to slice the image into pieces then the data can be "part" of an image (like a browser does).


Comments