diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-16 03:57:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-16 03:57:56 +0200 |
commit | 37a8e6831650bdf6439038d802775b182fa599e7 (patch) | |
tree | 8faef8ae360d359297ade184e6fb72246c1dfab8 | |
parent | 94b6dfa24f84bd8854c1dc566413b0719dce9e0d (diff) |
manager: rearrange order of mainloop, put gc/cleanup last to maximize reusing
-rw-r--r-- | manager.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |