diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-09 10:58:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-09 10:58:31 (GMT) |
commit | 286878b36b5cf7a3f44251f62c94a57f0f29d3cf (patch) | |
tree | a38a8a349ae55797f9fe2a1c2e3fb20b37855136 /src/core/core.c | |
parent | 3014f4f91f660dd7eaf80c5634c8ffa8fe3e95ec (diff) |
Handled the global work queue groups in a better way.
Diffstat (limited to 'src/core/core.c')
-rw-r--r-- | src/core/core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/core.c b/src/core/core.c index 1b6b033..5e3a4d0 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -39,6 +39,7 @@ #include "global.h" #include "params.h" #include "processors.h" +#include "queue.h" #include "../analysis/db/keymgn.h" #include "../common/io.h" #include "../common/xdg.h" @@ -63,7 +64,6 @@ bool load_all_basic_components(void) { static bool result = false; /* Bilan à retourner */ char *cfgdir; /* Répertoire de configuration */ - GWorkQueue *queue; /* Singleton pour tâches */ GContentExplorer *explorer; /* Explorateur de contenus */ GContentResolver *resolver; /* Résolveur de contenus */ @@ -96,8 +96,7 @@ bool load_all_basic_components(void) result &= g_generic_config_read(get_main_configuration()); - queue = g_work_queue_new(); - set_work_queue(queue); + result &= init_global_works(); explorer = g_content_explorer_new(); set_current_content_explorer(explorer); @@ -142,6 +141,8 @@ void unload_all_basic_components(void) unload_processors_definitions(); + exit_global_works(); + g_generic_config_write(get_main_configuration()); unload_main_config_parameters(); |