Lockable renamed to Lock (#219)
Also changed usage from unique_ptr to class value.
This commit is contained in:
committed by
GitHub
parent
2e86d4774b
commit
55bfb9fe3b
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user