qt-interest@trolltech.com
[Top] [All Lists]

Re: CPU Utilization issue

Subject: Re: CPU Utilization issue
From: Till Oliver Knoll
Date: Thu, 03 Mar 2005 18:48:18 +0100
Kuba Ober wrote:
...
On the other hand, how do you know if the image generator is ready in
producing a frame? You somehow need to flag the other process, if you don't
>> ...

Besides that the producer could just be in the process of writing the image when the consumer tries to read it without signaling/blocking. In the best case you get a garbage image then and when, in the worst case you crash your app (if QPixmap/QImage is not clever enough to detect bogus data).

But we knew that already since Dijkstra about 30 years ago, didn't we... ;))

Good night, Oliver

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>