summaryrefslogtreecommitdiff
path: root/src/core/queue.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-09 13:33:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-09 13:33:10 (GMT)
commit421c9d8b228f4926fabe06a19fda86d9023f1e96 (patch)
treef089835b8f03442c5e7067e940d28381255ef216 /src/core/queue.c
parentbb242c2cda6a590fef652e62688c10e2d52a7ff0 (diff)
Loaded binary contents using a dedicated global work group.
Diffstat (limited to 'src/core/queue.c')
-rw-r--r--src/core/queue.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/queue.c b/src/core/queue.c
index 615e351..79a87b2 100644
--- a/src/core/queue.c
+++ b/src/core/queue.c
@@ -60,6 +60,13 @@ bool init_global_works(void)
g_work_queue_define_work_group(queue);
#endif
+#ifndef NDEBUG
+ expected = g_work_queue_define_work_group(queue);
+ assert(expected == LOADING_WORK_GROUP);
+#else
+ g_work_queue_define_work_group(queue);
+#endif
+
return true;
}
@@ -105,7 +112,8 @@ void wait_for_all_global_works(void)
GWorkQueue *queue; /* Singleton pour tâches */
static const wgroup_id_t group_ids[] = {
- DEFAULT_WORK_GROUP
+ DEFAULT_WORK_GROUP,
+ LOADING_WORK_GROUP
};
queue = get_work_queue();