[mythtv-commits] Ticket #1344: Patch to add threadid in log messages

MythTV mythtv at cvs.mythtv.org
Fri Apr 14 16:26:54 UTC 2006


#1344: Patch to add threadid in log messages
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  cpinkham
     Type:  patch      |       Status:  reopened
 Priority:  minor      |    Milestone:          
Component:  mythtv     |      Version:          
 Severity:  medium     |   Resolution:          
-----------------------+----------------------------------------------------
Changes (by anonymous):

  * resolution:  fixed =>
  * status:  closed => reopened

Comment:

 The LOC, LOC_ERR and LOC_WARN macros are useful for what they're designed
 for -- noting the function / module that is '''''currently being
 executed'''''.

 This patch shows the '''''thread''''' that is executing the above
 mentioned functions / modules -- it works in concert with the macros to
 show the interactions between the different threads which are running.
 This is especially useful when you get into cases where multiple threads
 act on the same resource at the same time without proper synchronization
 (mutexes), resulting in either bad data or a segfault. This adds more info
 for debugging the segfault.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1344>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list