[systemd-devel] [PATCH 2/2] [POC] networkd: port to glib main loop

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Aug 20 10:08:36 PDT 2014


On 20/08/14 16:28, Tom Gundersen wrote:
> +int attach_sd_event_to_g_main_loop(GMainLoop *loop, sd_event *event) {

(I know this is only a proof of concept but)

I think the construct you're looking for is a GMainContext, not a GMainLoop:

    https://tecnocode.co.uk/2014/03/27/what-is-gmaincontext/

(I know many event frameworks conflate the two.)

Regards,
    S



More information about the systemd-devel mailing list