klips/esp/cpp/07_lcd-panel-i2c/main/scoped_lock.cpp

6 lines
171 B
C++

#include "scoped_lock.h"
// LVGL library is not thread-safe, this example calls LVGL APIs from tasks.
// We must use a mutex to protect it.
_lock_t ScopedLock::lv_lock_;