ngui: clarify and handle concurrency during screen sleep/standby
the screen.sleep fn was actually called in concurrent-unsafe mode, i.e without acquiring UI mutex. in conjuction with commThreadLoopCycle this would have eventually led to LVGL primitives concurrent access. so, screen.sleep now takes UI mutex to hold during LVGL calls. a bit ugly but certainly better than relying on luck.
parent
1d8d869629
commit
7fc04cb5ec
Reference in New Issue