Skip to content

Commit 96eee3b

Browse files
pdgendtfabiobaltieri
authored andcommitted
modules: lvgl: Add a name to the work queue thread
Make it easier to debug/diagnose issues by explicitly naming the LVGL thread. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent d3cc63a commit 96eee3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/lvgl/lvgl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,14 @@ int lvgl_init(void)
352352
}
353353

354354
#ifdef CONFIG_LV_Z_RUN_LVGL_ON_WORKQUEUE
355+
const struct k_work_queue_config lvgl_workqueue_cfg = {
356+
.name = "lvgl",
357+
};
358+
355359
k_work_queue_init(&lvgl_workqueue);
356360
k_work_queue_start(&lvgl_workqueue, lvgl_workqueue_stack,
357361
K_THREAD_STACK_SIZEOF(lvgl_workqueue_stack),
358-
CONFIG_LV_Z_LVGL_WORKQUEUE_PRIORITY, NULL);
362+
CONFIG_LV_Z_LVGL_WORKQUEUE_PRIORITY, &lvgl_workqueue_cfg);
359363

360364
k_work_submit_to_queue(&lvgl_workqueue, &lvgl_work.work);
361365
#endif

0 commit comments

Comments
 (0)