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 <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2025-07-25 10:49:46 +02:00 committed by Fabio Baltieri
parent d3cc63ac71
commit 96eee3bc5e

View File

@ -352,10 +352,14 @@ int lvgl_init(void)
}
#ifdef CONFIG_LV_Z_RUN_LVGL_ON_WORKQUEUE
const struct k_work_queue_config lvgl_workqueue_cfg = {
.name = "lvgl",
};
k_work_queue_init(&lvgl_workqueue);
k_work_queue_start(&lvgl_workqueue, lvgl_workqueue_stack,
K_THREAD_STACK_SIZEOF(lvgl_workqueue_stack),
CONFIG_LV_Z_LVGL_WORKQUEUE_PRIORITY, NULL);
CONFIG_LV_Z_LVGL_WORKQUEUE_PRIORITY, &lvgl_workqueue_cfg);
k_work_submit_to_queue(&lvgl_workqueue, &lvgl_work.work);
#endif