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
+13
View File
@@ -0,0 +1,13 @@
#include "Tactility/Lock.h"
namespace tt {
std::unique_ptr<ScopedLock> Lock::scoped() const {
return std::make_unique<ScopedLock>(*this);
}
ScopedLock Lock::asScopedLock() const {
return ScopedLock(*this);
}
}
-13
View File
@@ -1,13 +0,0 @@
#include "Tactility/Lockable.h"
namespace tt {
std::unique_ptr<ScopedLockableUsage> Lockable::scoped() const {
return std::make_unique<ScopedLockableUsage>(*this);
}
ScopedLockableUsage Lockable::asScopedLock() const {
return ScopedLockableUsage(*this);
}
}