Source.setName

Sets a name for the source, used in debugging and profiling. The name defaults to NULL. The source name should describe in a human-readable way what the source does. For example, "X11 event queue" or "GTK+ repaint idle handler" or whatever it is. It is permitted to call this function multiple times, but is not recommended due to the potential performance impact. For example, one could change the name in the "check" function of a GSourceFuncs to include details like the event type in the source name. Since 2.26

class Source
void
setName
(
string name
)

Parameters

name string

debug name for the source

Meta