[mythtv-commits] Ticket #4376: Handle keypresses in the main UI thread (refs #4230 and #4085)

MythTV mythtv at cvs.mythtv.org
Thu Dec 27 17:49:16 UTC 2007


#4376: Handle keypresses in the main UI thread (refs #4230 and #4085)
-----------------------------+----------------------------------------------
 Reporter:  andrei at tanas.ca  |       Owner:  ijr 
     Type:  patch            |      Status:  new 
 Priority:  minor            |   Milestone:  0.21
Component:  mythtv           |     Version:  head
 Severity:  medium           |     Mlocked:  0   
-----------------------------+----------------------------------------------
 Handling keypresses outside of main UI leads to events and dialogs being
 created on different threads and not being handled properly.
 On Windows, this leads to:
  a) mythfrontend deadlocks when trying to switch to program guide from
 livetv.
  b) muteTimer never fires, sound stays muted after any seek or channel
 change.

 The overhead associated with creating separate threads the way it is
 currently being done seems to be unnecessary, but I could be missing
 something.
 The proposed patch processes keypresses on the main thread, which fixes
 both problems.

 If the patch cannot be accepted as is, we need to look for a similar
 solution, as having a single UI thread is the only way to have application
 behave predictably on Windows.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4376>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list