Philip Withnall 6db112f9a7 gmain: Refactor idle-once and timeout-once to avoid a closure allocation
Instead store a bit inside `GTimeoutSource` and `GIdleSource` to
indicate that they are one-shot sources, and that their callbacks have a
different type and should always be assumed to return `G_SOURCE_REMOVE`.

This should make one-shot idle and timeout sources a teeny weeny little
bit cheaper to set up.

From a suggestion here: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2684#note_1462917

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-27 13:28:33 +01:00
..
2022-05-23 09:19:45 -04:00
2022-05-23 09:19:45 -04:00
2021-07-29 10:09:27 -04:00
2020-11-17 15:50:07 +00:00
2018-01-04 22:19:30 +01:00
2021-09-21 09:41:29 +00:00
2021-11-18 14:32:09 +00:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00