chiark / gitweb /
manager: rearrange order of mainloop, put gc/cleanup last to maximize reusing
authorLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 01:57:56 +0000 (03:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 01:57:56 +0000 (03:57 +0200)
manager.c

index 7675334..89b210d 100644 (file)
--- 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)