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
+2 -2
View File
@@ -7,7 +7,7 @@
namespace tt::hal::spi {
struct Data {
std::shared_ptr<Lockable> lock;
std::shared_ptr<Lock> lock;
bool isConfigured = false;
bool isStarted = false;
Configuration configuration;
@@ -169,7 +169,7 @@ bool isStarted(spi_host_device_t device) {
return dataArray[device].isStarted;
}
Lockable& getLock(spi_host_device_t device) {
Lock& getLock(spi_host_device_t device) {
return *dataArray[device].lock;
}