[mythtv] mythfrontend on ubuntu 17.04 testing X11 ICE problems
Mark Spieth
mark at digivation.com.au
Tue Feb 7 20:59:33 UTC 2017
On 8/02/2017 7:01 AM, Roger James wrote:
> On 7 February 2017 6:05:19 pm Derek Atkins <warlord at MIT.EDU> wrote:
>
>>
>> One problem with this patch is that it will spin the CPU for the
>> wolReconnect idle time, which isn't very nice.
>>
>
> I agree that spinning isn't nice. But not pumping the event loop is
> worse. A sleep(1) in the loop would improve things.
>
The correct Qt way is to use a QTimer and register/call a slot to
continue the processing after the time is up in another function. You
need to think event programming. Let the main loop of the thread do the
event dispatching. Blocking is bad even this way.
HTH
Mark
More information about the mythtv-dev
mailing list