summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-22 21:38:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-22 21:38:30 (GMT)
commit4fb2ac107092671fe27fc3ebf9fc86dff7c3ec19 (patch)
tree92cf5860302b4ba485c85fef3062f1179a978560 /src/core/core.c
parent0f73369ad9cd15cb17ae44aadfc035cb12778b93 (diff)
Reorganized the global variables for the work queue singleton.
Diffstat (limited to 'src/core/core.c')
-rw-r--r--src/core/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index b382e34..5b60384 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -35,6 +35,7 @@
#include "collections.h"
#include "formats.h"
+#include "global.h"
#include "params.h"
#include "processors.h"
#include "../analysis/db/keymgn.h"
@@ -61,6 +62,7 @@ bool load_all_basic_components(void)
{
static bool result = false; /* Bilan à retourner */
char *cfgdir; /* Répertoire de configuration */
+ GWorkQueue *queue; /* Singleton pour tâches */
/**
* On mémorise les passages réussis.
@@ -91,6 +93,9 @@ 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_segment_content_hash_table();
result &= load_hard_coded_processors_definitions();