Lockable renamed to Lock (#219)

Also changed usage from unique_ptr to class value.
This commit is contained in:
Ken Van Hoeylandt
2025-02-12 22:28:22 +01:00
committed by GitHub
parent 2e86d4774b
commit 55bfb9fe3b
40 changed files with 257 additions and 263 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ void unlock() {
unlock_singleton();
}
class LvglSync : public Lockable {
class LvglSync : public Lock {
public:
~LvglSync() override = default;
@@ -50,9 +50,9 @@ public:
}
};
static std::shared_ptr<Lockable> lvglSync = std::make_shared<LvglSync>();
static std::shared_ptr<Lock> lvglSync = std::make_shared<LvglSync>();
std::shared_ptr<Lockable> getLvglSyncLockable() {
std::shared_ptr<Lock> getLvglSyncLock() {
return lvglSync;
}