[gstreamer-bugs] [Bug 611911] New: Set thread names on pipeline threads

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 5 07:18:36 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=611911
  GStreamer | gstreamer (core) | git

           Summary: Set thread names on pipeline threads
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: alessandro.d at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Some operating systems support assigning names to threads. Giving a name to a
thread can be useful for debugging.

Under linux this is supported with the prctl(PR_SET_NAME, ...) call. When you
call that, you then get a nice thread name in /proc/ and in the output of
ps.

In gst, for threads created by GstTasks, we could set the thread name based on
the GstObject name. For example, we could set the name of a thread started by a
pad task to something like GST_DEBUG_PAD_NAME(), i.e. elementname:padname. This
could be easily done by modifying GstPad and GstTask, without having to change
the elements.

For threads started by tasks, but not owned by a pad (see rtspsrc for example),
we could modify the elements to explicitly set a name on the task. In the case
of rtspsrc, we could call the task GST_OBJECT_NAME(rtspsrc):loop or something
like that.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list