Can I update the UI in the sub thread, such as lv_ img_ set_ src() in httpthread

Can I update the UI in the sub thread, such as lv_ img_ set_ src() in httpthread?

I believe LVGL is not thread safe.
As such I would set a volatile variable and use that in the normal loop/task.
Hope that helps…

See Operating system and interrupts — LVGL documentation