[Qt-interest] QThread vs QTimer for polling
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Mon Mar 1 11:30:43 CET 2010
>>
>> It can take anywhere from 500 msec to ~3sec for the results to be
>> available.
>>
>> Thats why, I wanted to know if thread approach would be better or the
>> main app using a timer to monitor the status?
>>
>
> This seems to imply that the Qt event loop may be blocked for
> up to 3s, in which case it sounds like you need to run this code
> in a separately schedulable entity (thread or process).
That'll happen only if I busy-loop waiting for the status to be
available (essentially trying to make an async call sync). I don't
want to do that and hence was looking at other async alternatives
(like timer's or threads).
-mandeep
>
> --
> Stephen Collyer
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list