[mythtv-commits] Ticket #3757: Reduce polling in mythwelcome

MythTV mythtv at cvs.mythtv.org
Wed Aug 15 08:36:35 UTC 2007


#3757: Reduce polling in mythwelcome
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  ijr 
     Type:  defect     |       Status:  new 
 Priority:  minor      |    Milestone:  0.21
Component:  mythtv     |      Version:  head
 Severity:  low        |   Resolution:      
  Mlocked:  0          |  
-----------------------+----------------------------------------------------

Comment(by drees76 at gmail.com):

 I entered a bit more info in the (now closed) ticket #3800 - there are
 more numbers regarding how often mythwelcome and mythbackend wake up when
 idle.

 The select timeout in mythsocket.cpp looks to be a big offender, that will
 cause any application which uses it to wake up at least 100 times a second
 (default select timeout is 10k usec). Is there any known reason that can't
 be made larger or infinite?

 If I'm reading the code right it seems that the timeout could be made
 infinite (replace &timeval with NULL on line 743) without drawback thanks
 to the WakeReadyReadThread function.

 I'll attach a patch if anyone wants to see if it totally breaks anything
 (I won't be able to test for a couple days).

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3757#comment:6>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list