From 37a8e6831650bdf6439038d802775b182fa599e7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 May 2010 03:57:56 +0200 Subject: [PATCH] manager: rearrange order of mainloop, put gc/cleanup last to maximize reusing --- manager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manager.c b/manager.c index 76753348..89b210d6 100644 --- a/manager.c +++ b/manager.c @@ -1949,19 +1949,19 @@ int manager_loop(Manager *m) { sleep(1); } - if (manager_dispatch_cleanup_queue(m) > 0) + if (manager_dispatch_load_queue(m) > 0) continue; - if (manager_dispatch_gc_queue(m) > 0) + if (manager_dispatch_run_queue(m) > 0) continue; - if (manager_dispatch_load_queue(m) > 0) + if (bus_dispatch(m) > 0) continue; - if (manager_dispatch_run_queue(m) > 0) + if (manager_dispatch_cleanup_queue(m) > 0) continue; - if (bus_dispatch(m) > 0) + if (manager_dispatch_gc_queue(m) > 0) continue; if (manager_dispatch_dbus_queue(m) > 0) -- 2.39.5