|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
RAII scoped lock for thread-safe access to the LVGL rendering context. More...
#include <lvgl.hpp>
Public Member Functions | |
| LvglGuard () | |
| Acquires the LVGL lock, blocking until it is available. | |
| ~LvglGuard () | |
| Releases the LVGL lock. | |
| LvglGuard (const LvglGuard &)=delete | |
| LvglGuard & | operator= (const LvglGuard &)=delete |
| LvglGuard (LvglGuard &&)=delete | |
| LvglGuard & | operator= (LvglGuard &&)=delete |
RAII scoped lock for thread-safe access to the LVGL rendering context.
Acquires the LVGL lock on construction (via ove_lvgl_lock()) and releases it on destruction (via ove_lvgl_unlock()). Use this whenever LVGL API calls are made from a thread other than the dedicated LVGL task.
Example: