[Qt-interest] need some QThread help
Dave Smith
dave at thesmithfam.org
Tue Apr 26 08:13:15 CEST 2011
On Apr 25, 2011, at 9:31 AM, Paul Miller wrote:
> This is a simplified version of the problem. I need to save a rather
> large image (using my own code, not QImage), and I'm saving it 256 lines
> at a time. So I'm pushing 256 lines of data, and I need the thread to
> "consume" the 256 lines and I want the producer to wait for the consumer
> to be finished before it goes to get more lines.
>
If the producer must wait for the consumer to finish consuming before it can go to get more lines, why do you need threads in the first place? Can the producer and consumer just be the same thread?
--Dave
More information about the Qt-interest-old
mailing list