So what happens then when it runs out of memory? How would Qt notify the application programmer? Is there a way for the user to limit the queue size?
Yes, that was my intention for writing the example--it was so that I could have Thread1 stop generating requests eventually while Thread2 doing something else.
Speaking of which, is my understanding correct that by using 2 threads, I have 2 independent event threads running? Thus, potentially on multi-core machines, the 2 event loops will be running on different processors?
Well, reason why I said as time goes to infinity is precisely because I want to find out what happens when memory is filled up.
Bookmarks