Skip to content

gmain: Add names to various GSources constructed in GLib

Philip Withnall requested to merge pwithnall/glib:1175-source-names into master

For the purposes of debugging, it is quite useful for every GSource to have a name set. Ensure that any GSource we construct inside GLib has a name set. For GSources which are then returned to the caller, this name can then be overridden with something even more useful by the caller.

Since this data is only used for debugging, avoid doing any allocations for it; just use static strings.

#1175 (closed)

Closes #1175 (closed)

Merge request reports