When it is necessary to call lvgl_port_lock()

For which operations it is necessary to call lvgl_port_lock()?
To set the value of the object:?

  • lv_obj_set_size(label, 30, 95);
  • lv_label_set_text(obj,“Text”);
  • lv_obj_add_flag(content, LV_OBJ_FLAG_HIDDEN);

OR
To retrieve the value of the object:?

  • lv_obj_has_flag(label, LV_OBJ_FLAG_HIDDEN);
  • lv_label_get_text(obj);

Is it necessary to call lock/unlock?

  • from the lv_timer event function?
  • from the FreeRtos timer event function?
  • from the lv_msg_subsribe event function?

When it is necessary to call lock/unlock and when it is not?
Tnx

What MCU/Processor/Board and compiler are you using?

ESP32-C3, ESP-IDF v5.0

What LVGL version are you using?

v8.3.10

Does anyone know?

Thanks in advance for your help