diff options
Diffstat (limited to 'src/core/queue.c')
-rw-r--r-- | src/core/queue.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/queue.c b/src/core/queue.c index 79a87b2..4439e61 100644 --- a/src/core/queue.c +++ b/src/core/queue.c @@ -67,6 +67,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 == STORAGE_WORK_GROUP); +#else + g_work_queue_define_work_group(queue); +#endif + return true; } @@ -111,9 +118,10 @@ void wait_for_all_global_works(void) { GWorkQueue *queue; /* Singleton pour tâches */ - static const wgroup_id_t group_ids[] = { + static const wgroup_id_t group_ids[GLOBAL_WORK_GROUPS_COUNT] = { DEFAULT_WORK_GROUP, - LOADING_WORK_GROUP + LOADING_WORK_GROUP, + STORAGE_WORK_GROUP }; queue = get_work_queue(); |