GNOME Bugzilla – Bug 710765
Add names to all the timeouts
Last modified: 2013-12-18 14:48:28 UTC
See http://www.hadess.net/2013/10/reducing-wake-ups-2013-edition.html
Created attachment 257979 [details] [review] Add names to all the timeouts
Review of attachment 257979 [details] [review]: I might end up proving my stupidity by asking this, but isn't it possible to achieve this by some sort __PRETTY_FUNCTION__ combination with g_get_prgname(), inside of g_source_add() or equivalent?
If you want all the timeouts to say "g_source_add" as the function name, sure.
You know I didn't mean that :)
Review of attachment 257979 [details] [review]: Until we have a better way to do this, I guess we can commit. I still think that a macro for adding named sources would be handy here, but whatever…
Matthew did that: https://git.gnome.org/browse/evolution-data-server/commit/?id=7280d882f99076ba9a0ab7375806f7aad77d3d66
Right. In that case maybe we can wait for this to land in glib. Do you know whether there are plans for it?
I don't have any plans for it, and I don't know that there are (I don't know of any bugs filed).
Okay, just filed it.
Created attachment 264153 [details] [review] Add names to all the timeouts
Committed to master, as discussed on IRC a couple of days ago. Attachment 264153 [details] pushed as a09a8f0 - Add names to all the timeouts